Skip to main content

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

ParameterTypeDescription
elSupportsClassManipulationElement
clazzstring

Returns:

boolean