Squeditor includes a Conditional Display system that allows you to dynamically show or hide certain controls based on the values of other controls. This is extremely useful for keeping Squeditor sidebar clean when an option doesn’t apply (e.g., hiding font size settings when a custom layout is disabled).Documentation Index
Fetch the complete documentation index at: https://docs.squeditor.com/llms.txt
Use this file to discover all available pages before exploring further.
Basic Usage
Theshow_if property inside any control definition determines its visibility.
Equality
Display a control if another control’sid matches a specific value.
Inequality
Display a control if another control does NOT equal a specific value.Multiple Values
Display a control if another control’s value matches one of the items in a set.Logical Grouping
You can combine multiple conditions using AND (implicit in arrays) or OR (explicit object configuration).AND Logic (Default)
All conditions must be true for the control to display. Pass an array of condition strings.OR Logic
At least one condition must be true. Pass a configuration object withrelation: 'OR'.
Supported Operators
| Operator | Description | Example |
|---|---|---|
=== | Strict Equality | {{id}} === 'value' |
!== | Strict Inequality | {{id}} !== 'value' |
== | Equality (loose) | {{id}} == 1 |
!= | Inequality (loose) | {{id}} != 1 |
> | Greater Than | {{width}} > 100 |
>= | Greater/Equal | {{width}} >= 100 |
< | Less Than | {{width}} < 50 |
<= | Less/Equal | {{width}} <= 50 |
in | Value exists in set | {{type}} in { 'a', 'b' } |
!in | Value NOT in set | {{type}} !in { 'a', 'b' } |
contains | Array var contains value | {{tags}} contains 'new' |