Documentation

addCss

applied CSS class to a component item

void addCss(string|number id,string css, [boolean silent] );

Parameters

idstring|numberID of the neccessary item
cssstringCSS class name
silentbooleanif true the component is not redrawn

See also

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");

Back to top