Skip to content

addCss

applied CSS class to a component item

function addCss(
// ID of the neccessary item
id: string|number,
// CSS class name
css: string,
// optional,if "true",the component is not redrawn
silent?: boolean
): void
// 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");

also check the next samples: