Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Actions · mod_wires
  • Reference
  • Frontend developer
  • User interface and interaction
  • Wire action
  • JavaScript

overlay_close

Module

mod_wires

Closes the currently open overlay. When there is no overlay open then nothing happens.

Example:

{% button text="cancel" action={overlay_close} %}

This button closes any open overlay when clicked.

Edit on GitHub

Related pages

  • overlay_open Renders a template on the server and opens a full screen overlay with the HTML output of the template. →
  • dialog_open Renders a template on the server and opens a dialog with the HTML output of the template. →
  • dialog Opens a dialog with a predefined HTML content and title. →

Referred by

Category

Actions

Browser actions that templates attach to events with Zotonic's wiring system.

Related documentation

Cotonic models

model/wires Cotonic

model/wires Connects Cotonic messages to named Zotonic events through the wires script.

Actions

enable

Resets the “disabled” attribute of a HTML tag and removes the CSS class “disabled”.

Actions

alert

Show an alert dialog.

Scomp

wire_args

Add extra arguments to wired actions.

Actions

mask

Places a mask over an element, useful for blocking user interaction during lengthy postbacks.

Scomp

sortable

Mark an element as sortable.

Actions

disable

Sets the “disabled” attribute of a HTML tag and adds the CSS class “disabled”.

Scomp

droppable

Mark an element as valid drag destination.

Actions

overlay_open

Renders a template on the server and opens a full screen overlay with the HTML output of the template.

GitHub © 2026 Zotonic