EasyUI Forum
December 01, 2025, 12:52:31 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Feature Request - Add Font-Awsome support for iconCls  (Read 12846 times)
iceh
Jr. Member
**
Posts: 61


View Profile
« 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.
Logged
iceh
Jr. Member
**
Posts: 61


View Profile
« Reply #1 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 Sad
Logged
jarry
Administrator
Hero Member
*****
Posts: 2302


View Profile Email
« Reply #2 on: January 09, 2015, 08:28:52 AM »

Please set the icon to 16px size.
Code:
<style>
.fa{
font-size: 16px;
}
</style>
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!