EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: korenanzo on September 20, 2016, 06:53:22 AM



Title: pagination, link buttons, iconCls
Post by: korenanzo on September 20, 2016, 06:53:22 AM
Hi,

I am using pagination to manage a collection of buttons; actually I am using it as a toolbarbutton.

Each button has its own image, managed by iconCLs property

Now I need to change the icon at runtime: simply changing $('#mybutton').linkbutton('options').iconCls does not work.

How can I achieve my goal?

Thanks,
RIc


Title: Re: pagination, link buttons, iconCls
Post by: jarry on September 20, 2016, 07:21:22 AM
Please try this code to change the linkbutton icon.
Code:
var newCls = ...
$('#mybutton').linkbutton({iconCls:newCls});