Home > @jsplumbtoolkit/browser-ui > Surface > hasClass
Surface.hasClass() method
Returns whether the DOM element represented by el - which can be an Edge, Connection, Node, Group, DOM element, or ID of some model object - has the given class.
Signature:
hasClass(el: SupportsClassManipulationElement, clazz: string): boolean;
Parameters
| Parameter | Type | Description |
|---|---|---|
| el | SupportsClassManipulationElement | |
| clazz | string |
Returns:
boolean