Files
divkit/schema/div-pager.json
T
2022-10-10 18:59:44 +03:00

66 lines
1.7 KiB
JSON

{
"java_extends": "DivBlockWithId",
"$description": "translations.json#/div_pager",
"generate_swift_optional_arguments": false,
"allOf": [
{
"$ref": "div-base.json"
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"pager"
]
},
"layout_mode": {
"$ref": "div-pager-layout-mode.json",
"$description": "translations.json#/div_pager_layout_mode"
},
"item_spacing": {
"$ref": "div-fixed-size.json",
"default_value": "{\"type\": \"fixed\",\"value\":0}",
"$description": "translations.json#/div_pager_item_spacing"
},
"items": {
"type": "array",
"items": {
"$ref": "div.json"
},
"minItems": 1,
"clientMinItems": 1,
"$description": "translations.json#/div_pager_items"
},
"orientation": {
"type": "string",
"default_value": "horizontal",
"enum": [
"horizontal", "vertical"
],
"$description": "translations.json#/div_pager_orientation"
},
"restrict_parent_scroll": {
"$ref": "common.json#/boolean_int",
"default_value": "false",
"$description": "translations.json#/div_pager_restrict_parent_scroll",
"platforms": [
"android",
"web"
]
},
"default_item": {
"$ref": "common.json#/non_negative_integer",
"default_value": "0",
"$description": "translations.json#/div_pager_default_item"
}
}
}
],
"required": [
"type",
"items",
"layout_mode"
]
}