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