# Preview (iOS feature)

{% hint style="danger" %}
**Known Issue:** We recommend using alternatives while we improve the long-press experience.
{% endhint %}

{% columns %}
{% column %}
Add a preview for the following [Components](/examples/readme/components.md):

* [widgets](/examples/readme/widgets.md)
* [list-item](/examples/readme/components/list/list-item.md)
* [event](/examples/readme/components/event.md) The preview is triggered by *long-pressing* the widget or item. The *long-press* action can be used on:

1. Widgets
2. List-items on widget
3. onPress action on list-item or event.
   {% endcolumn %}

{% column %}

<figure><img src="/files/X0moXjmjdaVwNMAmpsOU" alt="Preview" width="175"><figcaption><p>Preview</p></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% hint style="info" %}
**Content preview**

***Applies to:** iOS devices only.*

On **iOS**, you can access a **content preview** by long-pressing a control.\
Long-pressing a control (for example, a web-view or entity-field) opens a lightweight preview window, allowing you to quickly view detailed content without navigating away. Pressing deeper expands the preview, revealing the full context.
{% endhint %}

## Configuration options

<table><thead><tr><th width="130.8828125">Core structure</th><th></th></tr></thead><tbody><tr><td><code>actions</code></td><td><p>These can be added to the preview:</p><ul><li><a href="/pages/LFvRmzztzwIHL4ekJ753">action-list</a> </li><li><a href="/pages/w3wfDwapE4XkLAc3mqwG">execute-entities</a> </li><li><a href="https://docs.jigx.com/examples/execute-entity">execute-entity</a> </li><li><a href="/pages/rI2k2zw23IdUjLXJxIwi">go-to</a> </li><li><a href="/pages/K1Hkb4X0FT4ehkzAPTI7">open-url</a> </li><li><a href="/pages/a0u8fD9JhlObl8MEpJ3g">reset-state</a></li><li> <a href="/pages/3N8lWgm2T7Hn0gqt4qBp">set-state</a></li><li> <a href="/pages/e26NA3TCVuIkQrz4PIgy">sync-entities</a> </li><li><a href="/pages/eiGvLj9r16ZRbFGUYAK6">confirm</a></li></ul></td></tr><tr><td><code>children</code></td><td>Two components available to use in a preview mode:</td></tr><tr><td><code>header</code></td><td>The is can be part of the displayed preview.</td></tr><tr><td><code>isCompact</code></td><td>When set to <code>true</code> the size of the preview will be adjusted to its content.</td></tr></tbody></table>

{% hint style="warning" %}

1. Currently issues could be experienced when displaying the header's `title` and `subtitle` in the preview.
2. Using the `action.go-to` within an action [action-list](/examples/readme/actions/action-list.md) does not trigger the preview popup.
   {% endhint %}


---

# 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://docs.jigx.com/examples/readme/preview.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.
