Revision history [back]

click to hide/show revision 1
initial version

asked 2011-10-24 18:51:37 +0800

gyowanny gravatar image gyowanny

Change listitem style through sclass

Hi,

I wanna change the list item style through sclass. My sample below doesn't work:

my custom css:

.list-video-seld tr.z-listitem-seld{background:#FFE58E;border:none;}
.list-video-over tr.z-listitem-over{background:#FAF5E3;}

and my java code. Notice I'm setting the sclass property in the ListItemRenderer:

private static class VideoListItemRenderer implements ListitemRenderer{

        @Override
        public void render(Listitem item, Object data) throws Exception {
                         .....
                         item.setSclass("list-video-seld list-video-over");
                         .....
                }
}

What is wrong with my code?

Thanks,

Gyo

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More