alert

See also

actions growl and confirm.

Show an alert dialog.

Example:

{% button action={alert text="hello world"} %}

Shows an alert dialog with the text “hello world”.

Alert accepts the following arguments:

ArgumentDescriptionExample
titleTitle of the alert.title=”Alert”
textThe text to be displayed.text=”Hola!”
buttonText for the button. Defaults to “OK”button=”Bummer”
only_textSet this to not show the “OK” button.only_text
actionAction to be done when the user clicks on the OK button. There can be multiple actions.
backdropShow backdrop: true, false, or the string “static”backdrop=false
levelNesting of the dialog. Non negative integer, higher numbered levels are displayed above lower levels. Special level "top" to force display on top.level=”top”

The alert dialog is rendered using the _action_dialog_alert.tpl template. Overrule this template to change the contents of the alert dialog.

Edit on GitHub

Notifications confirm

Referred by

button

Makes a button with an action attached.