{"result":{"depiction_url":null,"edges":{"in_module":{"objects":[{"created":"2020-05-30T05:47:28Z","object_id":{"id":1303,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_wires","title":"mod_wires","uri":"https:\/\/zotonic.com\/id\/1303"},"seq":1000000}],"predicate":{"id":333,"is_a":["meta","predicate"],"name":"in_module","title":{"_type":"trans","tr":{"en":"In module"}},"uri":"https:\/\/zotonic.com\/id\/in_module"}},"references":{"objects":[{"created":"2020-05-30T05:47:28Z","object_id":{"id":1614,"is_a":["text","documentation","reference","template_action"],"name":"doc_template_action_action_dialog_open","title":"dialog_open","uri":"https:\/\/zotonic.com\/id\/1614"},"seq":1000000}],"predicate":{"id":332,"is_a":["meta","predicate"],"name":"references","title":{"_type":"trans","tr":{"en":"References"}},"uri":"https:\/\/zotonic.com\/id\/references"}},"refers":{"objects":[{"created":"2026-09-09T13:48:15Z","object_id":{"id":1614,"is_a":["text","documentation","reference","template_action"],"name":"doc_template_action_action_dialog_open","title":"dialog_open","uri":"https:\/\/zotonic.com\/id\/1614"},"seq":1000000}],"predicate":{"id":2409,"is_a":["meta","predicate"],"name":"refers","title":{"_type":"trans","tr":{"en":"Refers"}},"uri":"https:\/\/zotonic.com\/id\/refers"}},"relation":{"objects":[{"created":"2020-05-30T05:47:28Z","object_id":{"id":1614,"is_a":["text","documentation","reference","template_action"],"name":"doc_template_action_action_dialog_open","title":"dialog_open","uri":"https:\/\/zotonic.com\/id\/1614"},"seq":1000000},{"created":"2020-05-30T05:47:28Z","object_id":{"id":1615,"is_a":["text","documentation","reference","template_action"],"name":"doc_template_action_action_dialog_close","title":"dialog_close","uri":"https:\/\/zotonic.com\/id\/1615"},"seq":1000000},{"created":"2020-05-30T05:47:28Z","object_id":{"id":1616,"is_a":["text","documentation","reference","template_action"],"name":"doc_template_action_action_overlay_open","title":"overlay_open","uri":"https:\/\/zotonic.com\/id\/1616"},"seq":1000000}],"predicate":{"id":303,"is_a":["meta","predicate"],"name":"relation","title":{"_type":"trans","tr":{"nl":"Relatie","en":"Relation"}},"uri":"http:\/\/purl.org\/dc\/terms\/relation"}},"subject":{"objects":[{"created":"2026-09-09T13:48:16Z","object_id":{"id":2555,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_reference","title":"Reference","uri":"https:\/\/zotonic.com\/id\/2555"},"seq":1},{"created":"2026-09-09T13:48:16Z","object_id":{"id":2563,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_frontend_developer","title":"Frontend developer","uri":"https:\/\/zotonic.com\/id\/2563"},"seq":2},{"created":"2026-09-09T13:48:16Z","object_id":{"id":2583,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_user_interface_and_interaction","title":"User interface and interaction","uri":"https:\/\/zotonic.com\/id\/2583"},"seq":3},{"created":"2026-09-09T13:48:16Z","object_id":{"id":2624,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_wire_action","title":"Wire action","uri":"https:\/\/zotonic.com\/id\/2624"},"seq":4},{"created":"2026-09-09T13:48:16Z","object_id":{"id":2673,"is_a":["categorization","keyword","keyword_technology"],"name":"zotonic_topic_javascript","title":"JavaScript","uri":"https:\/\/zotonic.com\/id\/2673"},"seq":5}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":1613,"is_a":["text","documentation","reference","template_action"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1613"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_template_action_action_dialog","page_url":{"en":"https:\/\/zotonic.com\/docs\/1613\/dialog","x-default":"https:\/\/zotonic.com\/docs\/1613\/dialog"},"preview_url":null,"resource":{"version":3327,"pivot_location_lat":null,"title":"dialog","is_authoritative":true,"body":"<p>Opens a dialog with a predefined HTML content and title.<\/p>\n<p>Example:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-django\">{% button action={dialog title=&quot;Wisdom&quot; text=&quot;&lt;p&gt;The world is a pancake.&lt;\/p&gt;&quot;} %}\n<\/code><\/pre>\n<p>This opens a dialog with the title “Wisdom”. The dialog is empty except for the text “The world is a pancake”.<\/p>\n<p>Normally, instead of this action, the action <a href=\"\/id\/doc_template_action_action_dialog_open\" class=\"doc-reference doc-reference-action\"><code>action#dialog_open<\/code><\/a> is used. The\naction <a href=\"\/id\/doc_template_action_action_dialog_open\" class=\"doc-reference doc-reference-action\"><code>action#dialog_open<\/code><\/a> shows a dialog that is rendered on the server.<\/p>\n<p>There can be many levels of dialogs open, they are designated by a <em>level<\/em>, the default dialog opens at level 0. Higher\nlevels are displayed above lower levels. There is a special level <code>&quot;top&quot;<\/code> which ensures that a dialog is always opened\nabove any other open dialog.<\/p>\n<table class=\"table\"><thead><tr><th>Argument<\/th><th>Required<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>title<\/td><td>required<\/td><td>Dialog header title<\/td><\/tr><tr><td>text<\/td><td>required<\/td><td>Dialog body text<\/td><\/tr><tr><td>width<\/td><td>optional<\/td><td>Dialog width in pixels. Use <code>&quot;large&quot;<\/code> for a wide dialog and <code>&quot;small&quot;<\/code> for a small dialog.<\/td><\/tr><tr><td>addclass<\/td><td>optional<\/td><td>classname will be appended to default dialog class<\/td><\/tr><tr><td>backdrop<\/td><td>optional<\/td><td>boolean (0, 1), or the string <code>&quot;static&quot;<\/code> for a modal dialog (does not close on backdrop click); default 1<\/td><\/tr><tr><td>center<\/td><td>optional<\/td><td>boolean (0, 1) default 1; set to 0 to align the dialog at the top<\/td><\/tr><tr><td>keyboard<\/td><td>optional<\/td><td>boolean (true, false) default: true; if true, closes when escape keys is pressed<\/td><\/tr><tr><td>level<\/td><td>optional<\/td><td>Nesting of the dialog. Non negative integer, higher numbered levels are displayed above lower levels. Special level <code>&quot;top&quot;<\/code> to force display on top.<\/td><\/tr><\/tbody><\/table>","slug":"dialog","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"12667f496fa5cb27940984298b2fa5701109ae784e353c647a66528fdf75e96f","is_featured":false,"content_group_id":{"id":2551,"is_a":["meta","content_group"],"name":"content_group_imported_docs","title":"Imported documentation","uri":"https:\/\/zotonic.com\/id\/content_group_imported_docs"},"category_id":{"id":326,"is_a":["meta","category"],"name":"template_action","title":"Actions","uri":"https:\/\/test.zotonic.com\/id\/326"},"doc_source_path":"apps\/zotonic_mod_wires\/src\/actions\/action_wires_dialog.erl","publication_start":"2023-01-30T19:23:57Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_mod_wires\/src\/actions\/action_wires_dialog.erl","pivot_location_lng":null,"doc_source_kind":"action","name":"doc_template_action_action_dialog","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2020-05-30T05:47:28Z","uri":null,"doc_status":"current","is_dependent":false,"erlang_app":"zotonic_mod_wires","publication_end":"9999-06-01T00:00:00Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"privacy":0,"doc_source_commit":"66cb145eae7002b184e7d8c4c7bba5e53e8248e5\n","erlang_module":"action_wires_dialog","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-10-02T12:40:38Z","title_slug":"dialog"},"uri":"https:\/\/zotonic.com\/id\/1613","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1613"}},"status":"ok"}