> For the complete documentation index, see [llms.txt](https://docs.eximee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/biblioteka-komponentow-bazowych/4-tresci/tresc-textcontent/znacznik-zwijania-rozwijania-w-tresci.md).

# Collapse/expand marker in Content

{% hint style="info" %}
Availability of functionality depends on the license and may not be available in all deployments.
{% endhint %}

Below is an example appearance on the application form using the collapse/expand marker in the Content:

![Figure 1. Appearance of the Content on the application form with the Collapse/Expand marker](/files/4c939e10abfe10867506ec5ed1ece3de1e75ab8c)

When creating the Content, you should prepare an artifact of type HTML. Example code:

{% code title="Example HTML" expandable="true" %}

```html
<style>
  div.togglewrapper { margin-right: 10px; }
</style>

<div>Value from the application: <b style="color: red;">${GesTextField1}</b></div>

<div>
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin nibh augue, suscipit a, scelerisque sed,
  lacinia in, mi. Cras vel lorem. Etiam pellentesque aliquet tellus. Phasellus pharetra nulla ac diam.
  Quisque semper justo at risus. Donec venenatis, turpis vel hendrerit interdum, dui ligula ultricies purus,
  sed posuere libero dui id orci. Nam congue, pede vitae dapibus aliquet, elit magna vulputate arcu,
  vel tempus metus leo non est.
</div>

<div style="display:flex; align-items:center; justify-content:space-between;margin-top:10px;margin-bottom:10px;">
  <div>Lorem ipsum dolor sit amet</div>
  <div class="toggleWrapper">
    <div class="unfold">Expand</div>
    <div class="fold">Collapse</div>
    <div class="toggle-icon"></div>
  </div>
</div>

/more/

<div>
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin nibh augue, suscipit a, scelerisque sed,
  lacinia in, mi. Cras vel lorem. Etiam pellentesque aliquet tellus. Phasellus pharetra nulla ac diam.
  Quisque semper justo at risus. Donec venenatis, turpis vel hendrerit interdum, dui ligula ultricies purus,
  sed posuere libero dui id orci. Nam congue, pede vitae dapibus aliquet, elit magna vulputate arcu,
  vel tempus metus leo non est.
</div>
```

{% endcode %}

The expand/collapse control is handled by the fragment:

{% code title="Expanding element" %}

```html
<div class="toggleWrapper">
  <div class="unfold">Expand</div>
  <div class="fold">Collapse</div>
  <div class="toggle-icon"></div>
</div>
```

{% endcode %}

The /more/ marker is responsible for splitting the Content into the collapsed and expanded parts — everything before /more/ is the content visible by default, and everything after /more/ is the expanded part.

Right alignment of the button depends on the styles defined inside the Content (in the example, the following style was used in the Content):

{% code title="Example alignment style" %}

```html
<style>
  div.togglewrapper { margin-right: 10px; }
</style>

<div style="display:flex; align-items:center; justify-content:space-between;margin-top:10px;margin-bottom:10px;">
  ...
</div>
```

{% endcode %}

It is important that:

* place the button in the visible part of the Content;
* the elements have the appropriate classes: toggleWrapper, unfold, fold, toggle-icon;
* the button structure is preserved.

{% hint style="info" %}
Demo application: demoTextContent
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/biblioteka-komponentow-bazowych/4-tresci/tresc-textcontent/znacznik-zwijania-rozwijania-w-tresci.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
