Permalink
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (8 sloc) 411 Bytes

Sets the "disabled" attribute of a HTML tag and adds the CSS class "disabled".

Example:

<input id="myid" type="text" value="hello" />
{% button text="disable" action={disable target="myid"} %}

After clicking the button the input will be:

<input id="myid" disabled="disabled" class="disabled" type="text" value="hello" />
.. seealso:: action :ref:`action-enable`.