addCss

applied CSS class to a component item

void addCss(string|number id,string css, [boolean silent] );
idstring|numberID of the neccessary item
cssstringCSS class name
silentbooleanoptional,if true,the component is not redrawn

Example

// this points to a component object
// context.target is a data item id in drag-n-drop context
this.addCss(context.target, "my_custom_mark");

Related samples

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix web control library and page of tree table product.