Section
Group content and override direction or tokens. Layout in the DocStudio designer user guide.
A section groups children and can change the rules for them.
Settings
The config setting accepts:
| Key | Effect |
|---|---|
direction |
ltr or rtl for everything inside the section |
tokens |
Named values, such as colors, that elements inside can reference |
style |
A style applied to the section content |
Why use it
- To mix directions in one page: an Arabic note inside an English document.
- To group elements so you can hide them with one condition. Give the section a condition in Conditions, and everything inside is hidden together.
- To keep the layers tidy.
Example
Insert a Section, set its config to { "direction": "rtl" }, and insert a text inside it with Arabic content.
Limits
A section does not change the page size or margins. Those are page settings.