PDA

View Full Version : [OPEN] Material Icons and Ext.theme.Material not documented



mtkutz
9 Jan 2017, 9:42 AM
I was unable to find any documentation on how to use the material icons in the new material theme in the modern toolkit.

I was also unable to find Ext.theme.Material class documented anywhere.

Gary Schlosberg
9 Jan 2017, 1:01 PM
Did you find this doc page?
http://docs.sencha.com/extjs/6.2.1/guides/core_concepts/material_theme.html

mtkutz
9 Jan 2017, 1:25 PM
Did you find this doc page?
http://docs.sencha.com/extjs/6.2.1/guides/core_concepts/material_theme.html

Yes. It's a good starting point, but it leaves much to be desired such as how to use the new material icon font and what is available in the Ext.theme.Material class. I had to dig into the examples and framework code to find out how to use iconCls: 'md-icon-xxxx' with the icons from here (https://material.io/icons/).

greg.barry
9 Jan 2017, 3:33 PM
Thanks for the report! I have opened an improvement request in our issue tracker.

cbray
25 May 2018, 12:44 PM
Still not documented -- but thank you for the find! For others trying to do the same, also note that you need to replace the "_" from the icon name as listed on the Material icons page with a "-". So for instance, if you wanted to use the Material "date_range" icon, you would set iconCls to "md-icon-date-range".

bhuber
6 Feb 2019, 12:45 AM
Still not documented.
I would like to use the icon in a <span> instead. This is possible with the font-awesome icons, but i cant figure out how to do the same with the material icons

wemerson.januario
28 Mar 2019, 7:00 PM
Sencha?