Skip to main content

Home > @jsplumb/core > Connection > addClass

Connection.addClass() method#

Adds the given class to the UI elements being used to represent this connection's connector, and optionally to the UI elements representing the connection's endpoints.

Signature:

addClass(c: string, cascade?: boolean): void;

Parameters#

ParameterTypeDescription
cstringclass to add
cascadebooleanIf true, also add the class to the connection's endpoints.

Returns:

void