Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > addClass

Surface.addClass() method#

Adds a class to 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:

addClass(el: Selection | SupportsClassManipulation, clazz: string): void;

Parameters#

ParameterTypeDescription
elSelection | SupportsClassManipulation
clazzstring

Returns:

void