EasyUI Forum

General Category => General Discussion => Topic started by: jianspf on October 30, 2017, 06:40:14 PM



Title: How can I set the icon of linkbutton use my png file?
Post by: jianspf on October 30, 2017, 06:40:14 PM
Hello,everyone,I'm new here..and I'm new for easyui.
I have two questions:
How can I set the icon use my png file?
And How can I get all of the internal icon name,like 'icon-edit','icon-ok',etc.
Can I get the name list? thanks!


Title: Re: How can I set the icon of linkbutton use my png file?
Post by: stworthy on October 31, 2017, 01:10:14 AM
The icon CSS is defined in 'themes/icon.css' file. It looks like this:
Code:
.icon-add{
background:url('icons/edit_add.png') no-repeat center center;
}
.icon-clear{
background:url('icons/clear.png') no-repeat center center;
}


Title: Re: How can I set the icon of linkbutton use my png file?
Post by: jianspf on November 05, 2017, 10:59:27 PM
very useful! thanks.