mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
651e83afab
8096e92d51e0ab151ba4f313c111fad1b7444155
78 lines
2.1 KiB
JSON
78 lines
2.1 KiB
JSON
{
|
|
"java_extends": "DivBlockWithId",
|
|
"$description": "translations.json#/div_pager",
|
|
"codegen": {
|
|
"swift": {
|
|
"generate_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"
|
|
},
|
|
"$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"
|
|
},
|
|
"page_transformation": {
|
|
"$ref": "div-page-transformation.json",
|
|
"platforms": [],
|
|
"$description": "translations.json#/div_pager_page_transformation"
|
|
},
|
|
"infinite_scroll": {
|
|
"$ref": "common.json#/boolean_int",
|
|
"default_value": "false",
|
|
"$description": "translations.json#/div_pager_infinite_scroll",
|
|
"platforms": [ "android" ]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"required": [
|
|
"type",
|
|
"layout_mode"
|
|
]
|
|
}
|