PDA

View Full Version : menu iconCls not working with fontawesome



juanbill
13 Jul 2015, 10:47 PM
Hi:

I wasn't able to get iconCls working with fontawesome with the current version of ext js 6.0.0.640

I resorted in using glyph codes.

This is a sencha fiddle.

https://fiddle.sencha.com/#fiddle/qdt

Thanks
J.

Zdeno
14 Jul 2015, 12:49 AM
You need add base font awesome css class - http://fortawesome.github.io/Font-Awesome/icon/home/

(http://fortawesome.github.io/Font-Awesome/icon/home/)
iconCls: 'fa fa-home'

mitchellsimoens
14 Jul 2015, 7:44 AM
With Ext JS 6 there is a font-awesome Cmd package that we ship with the framework so you don't need to download Font Awesome yourself. If you are using Cmd, did you require the font-awesome package in your app.json?

juanbill
14 Jul 2015, 2:53 PM
i thought it might be 'fa fa-home'.

this was different with the iconCls of the tab.panel where 'fa-home' was used in the generated app.

mjhaston
24 Jul 2017, 9:32 AM
Anyone find their splitbutton menu icons off center?