materials tumbnails

Hi all,

I’d like to use the little ‘balls’ preview at the top of the material properties panel, as icons for a custom panel I’m writing, does anyone know how to access it?

Thanks in advance,
Regards,


tmaes