Files
divkit/schema/div-action-scroll-destination.json
4eb0da 72b30f4c91 scroll_to item_id
commit_hash:0a7b7cbd9dd7b7a91b67e7445fa340689dfe84b4
2026-04-21 11:51:15 +03:00

117 lines
2.6 KiB
JSON

{
"$description": "translations.json#/div_action_scroll_destination",
"definitions": {
"offset_destination": {
"$description": "translations.json#/div_action_scroll_destination_offset",
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"offset"
]
},
"value": {
"$description": "translations.json#/div_action_scroll_destination_offset_value",
"$ref": "common.json#/non_negative_integer"
}
},
"required": [
"type",
"value"
]
},
"index_destination": {
"$description": "translations.json#/div_action_scroll_destination_index",
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"index"
]
},
"value": {
"$description": "translations.json#/div_action_scroll_destination_index_value",
"$ref": "common.json#/non_negative_integer"
}
},
"required": [
"type",
"value"
]
},
"start_destination": {
"$description": "translations.json#/div_action_scroll_destination_start",
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"start"
]
}
},
"required": [
"type"
]
},
"end_destination": {
"$description": "translations.json#/div_action_scroll_destination_end",
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"end"
]
}
},
"required": [
"type"
]
},
"item_id_destination": {
"$description": "translations.json#/div_action_scroll_destination_item_id",
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"item_id"
]
},
"value": {
"$description": "translations.json#/div_action_scroll_destination_item_id_value",
"type": "string"
}
},
"required": [
"type",
"value"
],
"platforms": [
"android",
"web"
]
}
},
"anyOf": [
{
"$ref": "#/definitions/offset_destination"
},
{
"$ref": "#/definitions/index_destination"
},
{
"$ref": "#/definitions/start_destination"
},
{
"$ref": "#/definitions/end_destination"
},
{
"$ref": "#/definitions/item_id_destination"
}
]
}