Home > @jsplumbtoolkit/browser-ui > Surface > toggleClass
Surface.toggleClass() method
Toggles a class on the DOM element represented by el
, which can be a Selection, or an instance of many different types - see the SupportsClassManipulation
interface for a complete list.
Signature:
toggleClass(el: Selection | SupportsClassManipulation, clazz: string): void;
Parameters
Parameter | Type | Description |
---|---|---|
el | Selection | SupportsClassManipulation | |
clazz | string |
Returns:
void