set_class

Set the class of an element.

Example:

<div id="x" class="not-inited"></div>
{% button text="Init" action={set_class target="x" class="inited"} %}

This uses the jQuery attr(‘class’, class_name) method to set the new class.

Edit on GitHub

replace DOM Elements show

Referred by

Actions

An overview of all wire actions.