mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
c02c3e15d4
commit_hash:f3f8ba74ad37061ae1f827cf368088550bcb9a41
137 lines
3.5 KiB
JSON
137 lines
3.5 KiB
JSON
{
|
|
"$description": "translations.json#/div_pager",
|
|
"definitions": {
|
|
"item_alignment": {
|
|
"type": "string",
|
|
"enum": [
|
|
"start",
|
|
"center",
|
|
"end"
|
|
]
|
|
}
|
|
},
|
|
"codegen": {
|
|
"swift": {
|
|
"generate_optional_arguments": false
|
|
}
|
|
},
|
|
"allOf": [
|
|
{
|
|
"$ref": "div-base.json"
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"pager"
|
|
]
|
|
},
|
|
"scroll_axis_alignment": {
|
|
"$ref": "#/definitions/item_alignment",
|
|
"default_value": "center",
|
|
"$description": "translations.json#/div_pager_scroll_axis_alignment",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web"
|
|
]
|
|
},
|
|
"cross_axis_alignment": {
|
|
"$ref": "#/definitions/item_alignment",
|
|
"default_value": "start",
|
|
"$description": "translations.json#/div_pager_cross_axis_alignment",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web"
|
|
]
|
|
},
|
|
"layout_mode": {
|
|
"$ref": "div-pager-layout-mode.json",
|
|
"$description": "translations.json#/div_pager_layout_mode",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web"
|
|
]
|
|
},
|
|
"item_spacing": {
|
|
"$ref": "div-fixed-size.json",
|
|
"default_value": "{\"type\": \"fixed\",\"value\":0}",
|
|
"$description": "translations.json#/div_pager_item_spacing",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web"
|
|
]
|
|
},
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "div.json"
|
|
},
|
|
"$description": "translations.json#/div_pager_items"
|
|
},
|
|
"item_builder": {
|
|
"$ref": "div-collection-item-builder.json",
|
|
"$description": "translations.json#/div_collection_item_builder",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web"
|
|
]
|
|
},
|
|
"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"
|
|
],
|
|
"unsupported_platforms": {
|
|
"ios": "There is no direct implementation, breaks the current behaviour, no plans for support."
|
|
}
|
|
},
|
|
"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": [
|
|
"android",
|
|
"ios"
|
|
],
|
|
"$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",
|
|
"ios",
|
|
"web"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"required": [
|
|
"type",
|
|
"layout_mode"
|
|
]
|
|
}
|