Spacer
This view allows you to add spaces between your other views. You should only
ever use it in Composite views that have the row_only property set to
true. A Spacer will take up the remaining space on the row (e.g: if a
Spacer is put between two other views, the first view will end up to the
far left of the screen and the second view will end up to the far right,
since the Spacer is taking up all the space in between them).
Including multiple Spacers in the same row will cause them to all share
the remaining free space in the row in equal parts.
Despite not having many properties to it, since it's a complex view with complex behaviors, use it only when you absolutely need it, preferring hard margins where possible.
JSON Format
{
"type": "spacer",
"id": ...,
"type": ...,
"margin_left": ...,
"margin_right": ...,
"margin_top": ...,
"margin_bottom": ...,
"is_visible": ...,
"validation_message": ...
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
validation_message | StatFormulaComponent | Optional. If this view is an input, you can define this formula to return a message when the input value is invalid. If the input is valid, you should return null. Otherwise, make the formula return the string that should be shown to the user. |