addCss

adds a CSS class to a DOM node

void addCss(HTMLElement node,string name);
nodeHTMLElementa DOM node
namestringthe name of a CSS class to apply

Example

//any node
webix.html.addCss(node,"mycssrule");
 
//Webix component top node
webix.html.addCss( $$("dt").getNode(), "mycss");

See also
Back to top