EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
June 27, 2024, 11:15:34 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
async tree and iconCls
Pages: [
1
]
« previous
next »
Print
Author
Topic: async tree and iconCls (Read 8341 times)
crosemffet
Jr. Member
Posts: 68
async tree and iconCls
«
on:
November 23, 2012, 03:31:53 AM »
I'm making async tree successfully.
server script is:
while($row = pg_fetch_array($rs)){
$node = array();
$node['id'] = $row['id'];
$node['text'] = $row['uname'];
$node['iconCls'] = 'myCustomIcon.gif'; //not working
array_push($result,$node);
}
sending from the server the parameter $node['iconCls']='myCustomIcon.gif' is not working. always shows me the default icon.
so the question is: where should I place myCustomIcon.gif to work? is my code ok? is ok to send the custom icon this way?
thanks in advance for your comments,
Logged
crosemffet
Jr. Member
Posts: 68
Re: async tree and iconCls
«
Reply #1 on:
November 23, 2012, 02:24:17 PM »
oops !. sorry, finally I've made it. my mistake, it works like a charm.
solution (just in case other needs): define in jquery/themes/icons.css the icon you want to use with this syntax:
.icon-myIcon{background:url('icons/myIcon.gif') no-repeat;}
then refer it as:
$node['iconCls'] = 'icon-myIcon';
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...