Grouplist: class name for item

Hello,

is it posible to assign a class name to a grouplist item on initialization?

I want to assign a red text color to one item in the list.

Thanks in advance

Horst Muerdter
CrossData-Tools

Hello,

you may define a template for items:

function itemTemplate(obj){ if(obj.id == "someId") return "<span style='color:red'>"+obj.title+"</span>"; return obj.title; }

  • for simple item:
    {
    view:“grouplist”,
    templateItem:itemTemplate,

    }

  • for group item:
    {
    view:“grouplist”,
    templateGroup:itemTemplate,

    }

  • for group item in open state:
    {
    view:“grouplist”,
    templateBack:itemTemplate,

    }

      						},