mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
b408de840f
commit_hash:5e29e60e9e868d1a6ad9a9af35ca2dbc3cd937b8
158 lines
4.5 KiB
JSON
158 lines
4.5 KiB
JSON
{
|
|
"$description": "translations.json#/div_slider",
|
|
"definitions": {
|
|
"text_style": {
|
|
"type": "object",
|
|
"allOf": [
|
|
{
|
|
"$ref": "div-font-base.json"
|
|
},
|
|
{
|
|
"properties": {
|
|
"offset": {
|
|
"$ref": "div-point.json",
|
|
"$description": "translations.json#/div_slider_text_style_offset"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"required": [
|
|
"font_size"
|
|
]
|
|
},
|
|
"range": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer",
|
|
"$description": "translations.json#/div_slider_range_start"
|
|
},
|
|
"end": {
|
|
"type": "integer",
|
|
"$description": "translations.json#/div_slider_range_end"
|
|
},
|
|
"track_active_style": {
|
|
"$ref": "div-drawable.json",
|
|
"$description": "translations.json#/div_slider_track_active_style"
|
|
},
|
|
"track_inactive_style": {
|
|
"$ref": "div-drawable.json",
|
|
"$description": "translations.json#/div_slider_track_inactive_style"
|
|
},
|
|
"margins": {
|
|
"$ref": "div-edge-insets.json",
|
|
"$description": "translations.json#/div_slider_range_margins"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"allOf": [
|
|
{
|
|
"$ref": "div-base.json"
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"slider"
|
|
]
|
|
},
|
|
"min_value": {
|
|
"type": "integer",
|
|
"default_value": "0",
|
|
"$description": "translations.json#/div_slider_min_value"
|
|
},
|
|
"max_value": {
|
|
"type": "integer",
|
|
"default_value": "100",
|
|
"$description": "translations.json#/div_slider_max_value"
|
|
},
|
|
"thumb_value_variable": {
|
|
"$ref": "div-variable-name.json",
|
|
"$description": "translations.json#/div_slider_thumb_value_variable"
|
|
},
|
|
"thumb_secondary_value_variable": {
|
|
"$ref": "div-variable-name.json",
|
|
"$description": "translations.json#/div_slider_thumb_secondary_value_variable"
|
|
},
|
|
"thumb_style": {
|
|
"$ref": "div-drawable.json",
|
|
"$description": "translations.json#/div_slider_thumb_style"
|
|
},
|
|
"thumb_secondary_style": {
|
|
"$ref": "div-drawable.json",
|
|
"$description": "translations.json#/div_slider_thumb_secondary_style"
|
|
},
|
|
"thumb_text_style": {
|
|
"$ref": "#/definitions/text_style",
|
|
"$description": "translations.json#/div_slider_thumb_text_style"
|
|
},
|
|
"thumb_secondary_text_style": {
|
|
"$ref": "#/definitions/text_style",
|
|
"$description": "translations.json#/div_slider_thumb_secondary_text_style"
|
|
},
|
|
"track_active_style": {
|
|
"$ref": "div-drawable.json",
|
|
"$description": "translations.json#/div_slider_track_active_style"
|
|
},
|
|
"tick_mark_active_style": {
|
|
"$ref": "div-drawable.json",
|
|
"$description": "translations.json#/div_slider_tick_mark_active_style"
|
|
},
|
|
"track_inactive_style": {
|
|
"$ref": "div-drawable.json",
|
|
"$description": "translations.json#/div_slider_track_inactive_style"
|
|
},
|
|
"tick_mark_inactive_style": {
|
|
"$ref": "div-drawable.json",
|
|
"$description": "translations.json#/div_slider_tick_mark_inactive_style"
|
|
},
|
|
"ranges": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/range"
|
|
},
|
|
"$description": "translations.json#/div_slider_ranges",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web"
|
|
]
|
|
},
|
|
"secondary_value_accessibility": {
|
|
"$ref": "div-accessibility.json",
|
|
"$description": "translations.json#/div_slider_secondary_value_accessibility",
|
|
"platforms": [
|
|
"web"
|
|
],
|
|
"unsupported_platforms": {
|
|
"ios": "There is no direct implementation, no plans for support."
|
|
}
|
|
},
|
|
"is_enabled": {
|
|
"$ref": "common.json#/boolean_int",
|
|
"default_value": "true",
|
|
"$description": "translations.json#/div_slider_is_enabled",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web"
|
|
],
|
|
"required": [
|
|
"type",
|
|
"thumb_style",
|
|
"track_active_style",
|
|
"track_inactive_style"
|
|
]
|
|
}
|