Sets CSS selector.
obj.setClass(name, value);
name | String | Selector name. |
value | String/Function | Selector value. |
The selector string is composed from the three parts - the prefix ('active'), the name and the value, separated by the '-' character. Normally the object class string consists of several selectors separated by space.
Selector values are stored and inherited separately within the object. This function allows easy access to single selector value without parsing the whole class string.
The following example adds 'active-template-list' stylesheet selector to the object class.
obj.setClass("template", "list");