ViewPager
This view allows you to segment / divide a page into several subpages that will be accessible by scrolling horizontally. This is particularly useful when creating edit views for resources that have a lot of stats, to avoid overwhelming the player and making it easier to find what they are looking for in a clutter-free fashion.
JSON Format
{
"type": "viewPager",
"id": ...,
"type": ...,
"margin_left": ...,
"margin_right": ...,
"margin_top": ...,
"margin_bottom": ...,
"is_visible": ...,
"validation_message": ...,
"subviews": ...,
"names": ...,
"color": ...
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
color | StatFormulaComponent | Optional. Defaults to black. Should compute be a string for an RPGColors or a hex code for a color that will be used for the banner containing the name of the current page.@type string |