Jump to content
uniGUI Discussion Forums
andyhill

Change TitleButton Icon at runtime

Recommended Posts

I am trying to change TitleButton Icon at runtime with the following code but it paints BLANK instead of icon - please advise - thanks.

UniSession.AddJS(GPSmForm.TitleButtons[2].JSName + '.setIconCls("add")');
 

Share this post


Link to post
Share on other sites

You can try like this:

pictos pictos-add

UniSession.AddJS(GPSmForm.TitleButtons[2].JSName + '.setIconCls("pictos pictos-add")');

or
  
UniSession.AddJS(GPSmForm.TitleButtons[2].JSName + '.setIconCls("fa fa-plus")');

 

Share this post


Link to post
Share on other sites

×