# Controllers

**SA5 Controllers** are module-specific access points that are exposed to custom code.&#x20;

These are automatically installed when a library is used, and are available on the Window object, beneath `sa5.controllers`.

## Examples&#x20;

### Modals&#x20;

When SA5 Modals in installed `sa5.controllers.modals` is available and can be used to display a specific named modal;&#x20;

```html
<script>
sa5.controllers.modals.display("modal1", true); 
</script>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://attr.sygnal.com/overview/sa5-core/controllers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
