@serenity-is/corelib / Fluent / toggle

Function: toggle()

toggle(element, flag?): void

Defined in: src/base/fluent.ts:560

Toggles the visibility of the element.

Parameters

element

Element

The target element

flag?

boolean

Optional. A flag indicating whether to show or hide the element. If not provided, the visibility will be toggled.

Returns

void

The Fluent object itself.