# overlay\_close

Source: https://zotonic.com/docs/2048/overlay_close

URI: https://zotonic.com/id/2048

Language: en



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

Example:

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

This button closes any open overlay when clicked.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2048?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2048?language=en>)
