createCss

converts a set of CSS rules to an active CSS class

string createCss(object data);

Parameters

dataobjectthe object with CSS rules

Returns

stringthe name of a new CSS class

Example

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

See also
Back to top