GodSpeed JP1
Posts: 0
Joined: Thu Feb 27, 2014 1:23 pm

How to change listview icon in JS?

Hi,
I am tring to change the icon of list item in JS.
I tried Appery('listitemname').attr('data-icon','gear');
But it does not work.
Anyone know this?Thank you.

GodSpeed JP1
Posts: 0
Joined: Thu Feb 27, 2014 1:23 pm

How to change listview icon in JS?

Hello Maryna,
I tried that ,but it seems not work.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to change listview icon in JS?

Hi,

Try this custom CSS code please: pre.myclass:after{
/* any styles for listview icon */
}/preThen add this class for the listitem to which you want to add this background :preAppery("listitemName").addClass("myclass");/pre

Return to “Issues”