{"result":{"depiction_url":null,"edges":{"observes":{"objects":[{"created":"2026-09-09T13:47:44Z","object_id":{"id":1468,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_acl_is_allowed","title":"observe_acl_is_allowed\/2","uri":"https:\/\/zotonic.com\/id\/1468"},"seq":1},{"created":"2026-09-09T13:47:44Z","object_id":{"id":1799,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_output_html","title":"observe_output_html\/3","uri":"https:\/\/zotonic.com\/id\/1799"},"seq":2},{"created":"2026-09-09T13:47:44Z","object_id":{"id":1823,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_postback_notify","title":"observe_postback_notify\/2","uri":"https:\/\/zotonic.com\/id\/1823"},"seq":3},{"created":"2026-09-09T13:47:44Z","object_id":{"id":2160,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_scomp_script_render","title":"observe_scomp_script_render\/2","uri":"https:\/\/zotonic.com\/id\/2160"},"seq":4}],"predicate":{"id":2550,"is_a":["meta","predicate"],"name":"observes","title":{"_type":"trans","tr":{"en":"Observes"}},"uri":"https:\/\/zotonic.com\/id\/observes"}},"references":{"objects":[{"created":"2020-07-14T13:49:08Z","object_id":{"id":1331,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_admin","title":"mod_admin","uri":"https:\/\/zotonic.com\/id\/1331"},"seq":1000000},{"created":"2020-07-14T13:49:08Z","object_id":{"id":1327,"is_a":["text","documentation","reference","template_scomp"],"name":"doc_template_scomp_scomp_wire","title":"wire","uri":"https:\/\/zotonic.com\/id\/1327"},"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:47:44Z","object_id":{"id":1327,"is_a":["text","documentation","reference","template_scomp"],"name":"doc_template_scomp_scomp_wire","title":"wire","uri":"https:\/\/zotonic.com\/id\/1327"},"seq":1000000},{"created":"2026-09-09T13:47:44Z","object_id":{"id":1331,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_admin","title":"mod_admin","uri":"https:\/\/zotonic.com\/id\/1331"},"seq":1000000}],"predicate":{"id":2409,"is_a":["meta","predicate"],"name":"refers","title":{"_type":"trans","tr":{"en":"Refers"}},"uri":"https:\/\/zotonic.com\/id\/refers"}},"subject":{"objects":[{"created":"2026-09-09T13:47:44Z","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:47:44Z","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:47:44Z","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:47:44Z","object_id":{"id":2623,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_scomp","title":"Server component","uri":"https:\/\/zotonic.com\/id\/2623"},"seq":4},{"created":"2026-09-09T13:47:44Z","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":5},{"created":"2026-09-09T13:47:44Z","object_id":{"id":2635,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_module","title":"Module","uri":"https:\/\/zotonic.com\/id\/2635"},"seq":6},{"created":"2026-09-09T13:47:44Z","object_id":{"id":2673,"is_a":["categorization","keyword","keyword_technology"],"name":"zotonic_topic_javascript","title":"JavaScript","uri":"https:\/\/zotonic.com\/id\/2673"},"seq":7}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"export_revision":4183,"id":1303,"is_a":["text","documentation","reference","module"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1303"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_module_mod_wires","page_url":{"en":"https:\/\/zotonic.com\/docs\/1303\/mod_wires","x-default":"https:\/\/zotonic.com\/docs\/1303\/mod_wires"},"preview_url":null,"resource":{"version":4183,"pivot_location_lat":null,"title":"mod_wires","is_authoritative":true,"body":"<p>Actions, tags (also known as screen components), and javascript for user interfaces using <em>wires<\/em>.<\/p>\n<p>Used by <a href=\"\/id\/doc_module_mod_admin\" class=\"doc-reference doc-reference-module\"><code>module#mod_admin<\/code><\/a> and the other administrative modules.<\/p>\n<p>Wires are actions that are directly coupled to user interface elements. These couplings are defined in the templates\nusing the <a href=\"\/id\/doc_template_scomp_scomp_wire\" class=\"doc-reference doc-reference-scomp\"><code>scomp#wire<\/code><\/a> tag.<\/p>\n<h2>Automatic widget loading<\/h2>\n<p>The widget manager initializes elements with a <code>do_&lt;name&gt;<\/code> class using the\ncorresponding jQuery widget. If that widget is not registered yet, it tries to\nload <code>js\/modules\/z.&lt;name&gt;.js<\/code> from the enabled modules and site. For example,\n<code>do_autofocus<\/code> loads <code>js\/modules\/z.autofocus.js<\/code>. The <code>do_dialog<\/code> alias loads\n<code>z.dialog.js<\/code> and calls <code>show_dialog<\/code>.<\/p>\n<p>Libraries use the normal timestamped lib URLs and share the browser asset\nregistry with lib tags. Concurrent discoveries share a load. Initialization is\nasynchronous for missing widgets; existing widgets initialize as before. Widget\ndefaults and <code>data-&lt;name&gt;<\/code> options are read after loading. Removed elements are\nnot initialized. Missing files or libraries that do not register the expected\njQuery function produce a browser console warning.<\/p>\n<p>Set configuration module <code>mod_wires<\/code>, key <code>widget_autoload<\/code>, to <code>false<\/code> to disable\nthis automatic loading (default: <code>true<\/code>). Already included widgets still work.\nWidgets with a different file layout, or additional dependencies, should be\nincluded explicitly with the lib tag. Configuration is checked by the server\nwhen resolving a missing widget; reload open pages after changing it.<\/p>\n<p>The model path <code>model\/wires\/get\/widget\/&lt;name&gt;<\/code> returns the asset descriptors\nused by the loader. Names may contain letters, digits, underscores and hyphens.<\/p>\n<h2>Accepted Events<\/h2>\n<p>This module handles the following notifier callbacks:<\/p>\n<ul><li><code>observe_acl_is_allowed<\/code>: Allow publish from clients to the transport topic.<\/li><li><code>observe_output_html<\/code>: Render nested actions and scomp results using <code>z_render:output<\/code>.<\/li><li><code>observe_page_actions<\/code>: Sanitize and normalize page action payloads before they are sent to the browser.<\/li><li><code>observe_postback_notify<\/code>: Handle postback notifications for showing a media overlay.<\/li><li><code>observe_scomp_script_render<\/code>: Part of the {% script %} rendering in templates using <code>z_render:make_postback_info<\/code>.<\/li><\/ul>\n<p>Delegate callbacks:<\/p>\n<ul><li><code>event\/2<\/code> with <code>postback<\/code> messages: <code>mediaoverlay_update<\/code>.<\/li><\/ul>","slug":"mod_wires","doc_module_config":[{"default":"true","description":"Automatically load missing do_ widgets from js\/modules\/z.&lt;name&gt;.js.","has_default":true,"key":"widget_autoload","module":"mod_wires","type":"boolean"}],"is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"2e2bf6b39acbc51a70d6cf0d47b6c030299380071421ecbc34f11d2797961b68","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":320,"is_a":["meta","category"],"name":"module","title":"Modules","uri":"https:\/\/test.zotonic.com\/id\/320"},"doc_source_path":"apps\/zotonic_mod_wires\/src\/mod_wires.erl","publication_start":"2023-06-24T08:17:55Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_mod_wires\/src\/mod_wires.erl","pivot_location_lng":null,"doc_source_kind":"module","name":"doc_module_mod_wires","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2020-05-30T05:47:18Z","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":"8e6aad17c4d86dee983db46a656ed6f6a930bcbb\n","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-11-11T14:06:56Z","title_slug":"mod_wires"},"uri":"https:\/\/zotonic.com\/id\/1303","uri_template":"https:\/\/zotonic.com\/id\/:id","version":4183,"websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1303"}},"status":"ok"}