Home > @jsplumbtoolkit/browser-ui > Surface > hasClass
#
Surface.hasClass() methodReturns 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;
#
ParametersParameter | Type | Description |
---|---|---|
el | SupportsClassManipulationElement | |
clazz | string |
Returns:
boolean