List
This view allows you to display several views in vertical succession, one
after the other. It could be thought of as the vertical version of a
Composite... without the wrapping behaviour (because it's already
vertical!).
JSON Format
{
"type": "list",
"id": ...,
"type": ...,
"margin_left": ...,
"margin_right": ...,
"margin_top": ...,
"margin_bottom": ...,
"is_visible": ...,
"validation_message": ...,
"subviews": ...,
"padding": ...,
"padding_left": ...,
"padding_right": ...,
"padding_top": ...,
"padding_bottom": ...,
"alignment": ...
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
id | String | ✓ | A unique identifier for the view. You can use it to reference view values in stat formulas by doing $view.view_id (where view_id is the id that was assigned to this view by you in the system definition) |
type | RPGViewType | ✓ | The type of this view. Note that these are all in camelCase. |
margin_left | double | Optional. How much margin to add to the left of this view. | |
margin_right | double | Optional. How much margin to add to the right of this view. | |
margin_top | double | Optional. How much margin to add to the top of this view. | |
margin_bottom | double | Optional. How much margin to add to the bottom of this view. | |
is_visible | StatFormulaComponent | Optional. A formula to specify if the view should be visible or not. Must return a bool. | |
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. | |
subviews | List<RPGView> | ✓ | The views that should be displayed, one after the other, vertically. |
padding | double | Optional. Defaults to 0. How much space to include to the sides and before and after the items in this list. | |
padding_left | double | Optional. Defaults to 0. How much space to include to the left of the items in the list. | |
padding_right | double | Optional. Defaults to 0. How much space to include to the right of the items in the list. | |
padding_top | double | Optional. Defaults to 0. How much space to include before the items in the list. | |
padding_bottom | double | Optional. Defaults to 0. How much space to include after the items in the list. | |
alignment | CompositeRPGViewAlignment | Optional. Defaults to start. How to (horizontally) align the items in the list. |