forked from divkit/divkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiv-slider.json
117 lines (117 loc) · 3.53 KB
/
div-slider.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"java_extends": "DivBlockWithId",
"$description": "translations.json#/div_slider",
"definitions": {
"text_style": {
"type": "object",
"properties": {
"font_size": {
"$ref": "common.json#/non_negative_integer",
"$description": "translations.json#/div_font_size"
},
"font_size_unit": {
"$ref": "div-size-unit.json",
"default_value": "sp",
"platforms": [
"android"
]
},
"font_weight": {
"$ref": "div-font-weight.json",
"default_value": "regular",
"$description": "translations.json#/div_font_weight"
},
"text_color": {
"$ref": "common.json#/color",
"default_value": "#FF000000",
"$description": "translations.json#/div_text_color"
},
"offset": {
"$ref": "div-point.json",
"$description": "translations.json#/div_slider_text_style_offset"
}
},
"required": [
"font_size"
]
}
},
"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"
},
"secondary_value_accessibility": {
"$ref": "div-accessibility.json",
"$description": "translations.json#/div_slider_secondary_value_accessibility",
"platforms": [
"web"
]
}
}
}
],
"required": [
"type",
"thumb_style",
"track_active_style",
"track_inactive_style"
]
}