Go to page content

toggle

Toggle the visibility of an element.

Example:

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

Shows the element with id “myid” when it was hidden, otherwise hide it..

See also the actions show, hidefade_infade_out, slide_down, slide_upslide_fade_in and slide_fade_out.

This page is part of the Zotonic documentation, which is licensed under the Apache License 2.0.