blockly > utils > dom > removeClass

utils.dom.removeClass() function

Remove a CSS class from a element.

Handles multiple space-separated classes for legacy reasons.

Signature:

export declare function removeClass(element: Element, className: string): boolean;

Parameters

Parameter Type Description
element Element DOM element to remove class from.
className string Name of class to remove.

Returns:

boolean

True if class was removed, false if never present.