@serenity-is/corelib / addClass

Function: addClass()

addClass(el, cls): void

Defined in: src/base/html.ts:60

Adds a CSS class to the specified element.

Parameters

el

Element

The element to add the class to.

cls

string

The CSS class to add.

Returns

void

A boolean value indicating whether the class was successfully added.