forked from divkit/divkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiv-grid.json
60 lines (60 loc) · 1.39 KB
/
div-grid.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
{
"java_extends": "DivBlockWithId",
"$description": "translations.json#/div_grid",
"codegen": {
"swift": {
"generate_optional_arguments": false
},
"kotlin": {
"properties_to_patch": [
"items"
]
}
},
"allOf": [
{
"$ref": "div-base.json"
},
{
"$ref": "div-actionable.json"
},
{
"properties": {
"content_alignment_vertical": {
"$ref": "div-alignment-vertical.json",
"default_value": "top",
"$description": "translations.json#/div_grid_content_alignment_vertical"
},
"content_alignment_horizontal": {
"$ref": "div-alignment-horizontal.json",
"default_value": "start",
"$description": "translations.json#/div_grid_content_alignment_horizontal"
},
"items": {
"type": "array",
"items": {
"$ref": "div.json"
},
"minItems": 1,
"strictParsing": true,
"$description": "translations.json#/div_grid_items"
},
"column_count": {
"$ref": "common.json#/non_negative_integer",
"$description": "translations.json#/div_grid_column_count"
},
"type": {
"type": "string",
"enum": [
"grid"
]
}
}
}
],
"required": [
"items",
"column_count",
"type"
]
}