Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Actions · mod_wires
  • Reference
  • Frontend developer
  • User interface and interaction
  • Wire action
  • JavaScript

buttonize

Module

mod_wires

Add button interaction classes to an element.

The action adds hover during pointer hover and clicked while the pointer is pressed, removing each class when its corresponding interaction ends.

For example:

{% wire id="preview" action={buttonize} %}

Edit on GitHub

Related documentation

Actions

enable

Resets the “disabled” attribute of a HTML tag and removes the CSS class “disabled”.

Actions

alert

Show an alert dialog.

Scomp

wire_args

Add extra arguments to wired actions.

Actions

mask

Places a mask over an element, useful for blocking user interaction during lengthy postbacks.

Scomp

sortable

Mark an element as sortable.

Actions

disable

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

Actions

overlay_open

Renders a template on the server and opens a full screen overlay with the HTML output of the template.

Actions

overlay_close

Closes the currently open overlay. When there is no overlay open then nothing happens.

Scomp

droppable

Mark an element as valid drag destination.

GitHub © 2026 Zotonic