EasyUI Forum
September 14, 2025, 04:01:21 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How can I add new icons to buttons etc  (Read 8374 times)
elcidofauy
Newbie
*
Posts: 11


View Profile
« on: May 15, 2015, 10:11:44 AM »

Dear All,

This is driving me a little loopy.. I'm trying to add new icons to my forms such as on buttons etc... I thought this would work:

1. Add new icon to the "icons" folder e.g. mynewiconfile.png

2. Amend icon.css with referencing the new icons e.g.

.icon-mynewiconfile{
   background:url('icons/mynewiconfile.png') no-repeat center center;
}

3. In the source code:

<a href="javascript:void(0)" class="easyui-linkbutton" style="width:110px" onclick="myfunction()" data-options="iconCls:'icon-mynewiconfile'">Example</a>


However it does not work... Nothing is shown... The only icons which work is the limited set that you get when downloading the libraries...

This should be simple lol... Perhaps I am missing something very obvious... Appreciate any help you can offer...

Cheers,


Sid



 
Logged
elcidofauy
Newbie
*
Posts: 11


View Profile
« Reply #1 on: May 16, 2015, 09:19:06 PM »

Update: For the time being the only way I can get this to work is to place the css code directly within my webpage and thus ignore icon.css.. For some reason adding it to icon.css it is not picked up,where are the default set is... It seems to me there is another piece of code which needs to be added should you want it to work in the same way as for default ones...
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!