createCss

converts a set of CSS rules to an active CSS class

string createCss(object data);
dataobjectthe object with CSS rules
stringthe name of a new CSS class

Example

node.className = webix.html.createCss({
     "color":"red",
     "text-align":"center"
});

See also
Back to top