EasyUI Forum

General Category => General Discussion => Topic started by: iceh on January 08, 2015, 06:18:48 PM



Title: Feature Request - Add Font-Awsome support for iconCls
Post by: iceh on January 08, 2015, 06:18:48 PM
Hello,

i have a feature request.

Can you please add font-awsome (http://fortawesome.github.io/Font-Awesome/) support
for iconCls - e.g in link-buttons?

In general the font-awsome icons work.

E.g.

Code:
<a href="#" id="buttonLogin" class="easyui-linkbutton" 
                            onclick="redirectHome();"
                            data-options="iconCls:'fa fa-unlock'">Login</a>

The Icons are a bit smaller then the default easy-ui icons.

Please check this out. Font-Awsome has some great looking free icons.


Title: Re: Feature Request - Add Font-Awsome support for iconCls
Post by: iceh on January 08, 2015, 06:20:41 PM
In my example - adding "fa-border" to the iconClass does the trick - but just on Chrome - IE displays a border :(


Title: Re: Feature Request - Add Font-Awsome support for iconCls
Post by: jarry on January 09, 2015, 08:28:52 AM
Please set the icon to 16px size.
Code:
<style>
.fa{
font-size: 16px;
}
</style>