Skip to content

removeCss

removes CSS class from a component item

function removeCss(
// ID of the necessary item
id: string|number,
// CSS class name
css: string,
// if true, the component is not redrawn
silent?: boolean
): void
//this points to a component object
//this.my_marked is an id of a previously marked data item
this.removeCss(this.my_marked, "my_custom_mark");

also check the next samples:

The method is true for removing CSS only from those items which CSS was previously added by addCSS().