toggle

  • Module: mod_base

Toggle the visibility of an element.

Example:

{% button action={toggle target="myid"} %}

Shows the element with id myid if it was hidden, otherwise hide it.