Fetching contributors…
Cannot retrieve contributors at this time
16 lines (9 sloc) 425 Bytes

Remove an element from the page.

For example, the following removes the foo div from the page:

<div id="foo">I am the foo div</div>
{% button text="Remove foo" action={remove target="foo"} %}

Without target, the action removes its triggering element:

{% button text="Click me to remove me" action={remove} %}
.. seealso:: :ref:`actions`, :ref:`scomp-button`