add_class

  • Module: mod_base

Add a css class to an html element.

Example:

{% button action={add_class target="myid" class="newclass"} %}

Adds the CSS class “newclass” to the element with HTML id “myid”.

See also

actions remove_class and toggle_class.