Go to page content

dialog

Show a dialog.

Opens a dialog with a predefined HTML content and title.

Example:

{% button action={dialog title="Wisdom" text="<p>The world is a pancake.</p>"} %}

This opens a dialog with the title "Wisdom".  The dialog is empty except for the text "The world is a pancake".

Normally, instead of this action, the action dialog_open is used. The action dialog_open shows a dialog that is rendered on the server.

See also dialog_open and dialog_close.

This page is part of the Zotonic documentation, which is licensed under the Apache License 2.0.