mod_wires

Actions, tags (also known as screen components), and javascript for user interfaces using wires.

Used by mod_admin and the other administrative modules.

Wires are actions that are directly coupled to user interface elements. These couplings are defined in the templates using the wire tag.

Edit on GitHub

Actions

add_class

See also

alert

See also

animate

Add a $(..).animate jQuery call to the target element.

confirm

See also

dialog

See also

dialog_open

See also

disable

See also

editor_add

Add WYSIWYG editor controls to all textarea’s with the z_editor class in the target.

editor_remove

Remove any WYSIWYG editor controls from all textarea’s with the z_editor class in the target.

effect

Add a $(..).effect jQuery call to the target element.

enable

See also

event

Bind actions to a jQuery event or submit a form.

fade_in

See also

fade_out

See also

focus

Add a $(..).focus() jQuery call to the target element to give it input focus.

form_reset

Resets the target form to its initial state.

growl

See also

hide

See also

Scomp

button

Makes a button with an action attached.

draggable

Mark a html element as draggable.

droppable

Mark an element as valid drag destination.

script

This tag is the placeholder where all generated JavaScript scripts will be output on the page.

sortable

Mark an element as sortable.

sorter

A sorter is a container for sortables.

validate

The validator tag accepts the following arguments:

wire

Connect actions and events to a HTML element.

wire_args

Add extra arguments to wired actions.

Referred by

Browser/server interaction

There are multiple ways to set up interaction between server-side Zotonic code and client-side JavaScript.