"Undisplays" (display: none) or displays the given element.
IMPORTANT: When constructed, it removes the lisn-undisplay class if present on the element as a form of initialization.
lisn-undisplay
To use with auto-widgets (HTML API) as part of a trigger specification:
<button id="btn">Display/undisplay</button><div data-lisn-on-click="@undisplay +target=#btn"></div> Copy
<button id="btn">Display/undisplay</button><div data-lisn-on-click="@undisplay +target=#btn"></div>
Static
Readonly
Sets display: none on the element.
display: none
Displays the element if it's "undisplayed", otherwise "undisplays" it.
It reverts the element to its original display property.
display
"Undisplays" (display: none) or displays the given element.
IMPORTANT: When constructed, it removes the
lisn-undisplay
class if present on the element as a form of initialization.To use with auto-widgets (HTML API) as part of a trigger specification:
Example