forked from divkit/divkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiv-gallery.json
110 lines (110 loc) · 2.8 KB
/
div-gallery.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
{
"java_extends": "DivBlockWithId",
"$description": "translations.json#/div_gallery",
"codegen": {
"swift": {
"generate_optional_arguments": false
},
"kotlin": {
"properties_to_patch": [
"items"
]
}
},
"allOf": [
{
"$ref": "div-base.json"
},
{
"properties": {
"type": {
"type": "string",
"enum": [
"gallery"
]
},
"cross_content_alignment": {
"$description": "translations.json#/div_gallery_cross_content_alignment",
"version": "2.1",
"type": "string",
"enum": [
"start",
"center",
"end"
],
"default_value": "start"
},
"column_count": {
"$ref": "common.json#/positive_integer",
"$description": "translations.json#/div_gallery_column_count"
},
"item_spacing": {
"$ref": "common.json#/non_negative_integer",
"default_value": "8",
"$description": "translations.json#/div_gallery_item_spacing"
},
"cross_spacing": {
"$ref": "common.json#/non_negative_integer",
"$description": "translations.json#/div_gallery_cross_spacing"
},
"scroll_mode": {
"type": "string",
"default_value": "default",
"enum": [
"paging",
"default"
],
"$description": "translations.json#/div_gallery_scroll_mode"
},
"items": {
"type": "array",
"items": {
"$ref": "div.json"
},
"minItems": 1,
"$description": "translations.json#/div_gallery_items"
},
"orientation": {
"type": "string",
"default_value": "horizontal",
"enum": [
"horizontal",
"vertical"
],
"$description": "translations.json#/div_gallery_orientation"
},
"restrict_parent_scroll": {
"$ref": "common.json#/boolean_int",
"default_value": "false",
"$description": "translations.json#/div_gallery_restrict_parent_scroll",
"platforms": [
"android",
"web"
]
},
"default_item": {
"$ref": "common.json#/non_negative_integer",
"default_value": "0",
"$description": "translations.json#/div_gallery_default_item"
},
"scrollbar": {
"type": "string",
"enum": [
"none",
"auto"
],
"default_value": "none",
"$description": "translations.json#/div_scrollbar",
"platforms": [
"web",
"android"
]
}
}
}
],
"required": [
"type",
"items"
]
}