The availability of functionality depends on the license and may not be available in all deployments.
Below is a sample appearance on the application using the Collapse/Expand tag in Content:
Illustration 1. Appearance of Content on the application with the Collapse/Expand tag
When creating Content you should prepare an artifact of type HTML. Sample code:
The fragment responsible for the expander is:
The /more/ tag is responsible for dividing the Content into collapsed and expanded parts — everything before /more/ is the content visible by default, and everything after /more/ is the expanded part.
The alignment of the button to the right depends on the styles defined inside the Content (the example uses the following style in the Content):
Important to:
place the button in the visible part of the Content;
ensure elements have the appropriate classes: toggleWrapper, unfold, fold, toggle-icon;
<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>