@serenity-is/corelib / Fluent / toggle
Function: toggle()
toggle(
element,flag?):void
Defined in: src/base/fluent.ts:726
Shows or hides the element, handling hidden, display:none, and .hidden class.
Parameters
element
Element
Target element.
flag?
boolean
When true, shows the element; when false, hides it; when omitted, toggles the current visibility.
Returns
void
void.