# Lightbox Element

See the sub pages for details on how to implement;

* [CMS captions](/sa5-elements/lightbox/cms-and-lightbox-+-captions.md) in lightboxes
* [CMS lightbox](/sa5-elements/lightbox/cms-and-lightbox-+-groups.md) groups
* Dynamic [lightbox creation](/sa5-elements/lightbox/slider-code-examples.md)

## Features <a href="#prepare-your-collection-list" id="prepare-your-collection-list"></a>

SA5 Lightbox includes JS API capabilities, see the left nav for the API docs.&#x20;

|                                     | Attributes                                                                     | Javascript API                                                  |
| ----------------------------------- | ------------------------------------------------------------------------------ | --------------------------------------------------------------- |
| CMS-driven groups                   | [wfu-lightbox-group](/sa5-elements/lightbox/cms-and-lightbox-+-groups.md)      |                                                                 |
| Captions support                    | [wfu-lightbox-captions](/sa5-elements/lightbox/cms-and-lightbox-+-captions.md) |                                                                 |
| Add new image lightbox, dynamically |                                                                                | [createNew](/sa5-elements/lightbox/slider-code-examples.md)     |
| Reset lightboxes                    |                                                                                | [resetLightbox](/sa5-elements/lightbox/slider-code-examples.md) |


---

# 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/sa5-elements/lightbox.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.
