mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
138 lines
3.6 KiB
JSON
138 lines
3.6 KiB
JSON
{
|
|
"java_extends": "DivBlockWithId",
|
|
"$description": "translations.json#/div_container",
|
|
"generate_swift_optional_arguments": false,
|
|
"codegen": {
|
|
"divan": {
|
|
"forced_properties_order": [
|
|
"orientation"
|
|
],
|
|
"factories": {
|
|
"row": {
|
|
"vararg_property": "items",
|
|
"inlines": {
|
|
"orientation": "horizontal"
|
|
}
|
|
},
|
|
"column": {
|
|
"vararg_property": "items",
|
|
"inlines": {
|
|
"orientation": "vertical"
|
|
}
|
|
},
|
|
"stack": {
|
|
"vararg_property": "items",
|
|
"inlines": {
|
|
"orientation": "overlap"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"definitions": {
|
|
"separator": {
|
|
"type": "object",
|
|
"properties": {
|
|
"show_at_start": {
|
|
"$ref": "common.json#/boolean_int",
|
|
"$description": "translations.json#/div_container_separator_show_at_start",
|
|
"default_value": "false"
|
|
},
|
|
"show_between": {
|
|
"$ref": "common.json#/boolean_int",
|
|
"$description": "translations.json#/div_container_separator_show_between",
|
|
"default_value": "true"
|
|
},
|
|
"show_at_end": {
|
|
"$ref": "common.json#/boolean_int",
|
|
"$description": "translations.json#/div_container_separator_show_at_end",
|
|
"default_value": "false"
|
|
},
|
|
"style": {
|
|
"$ref": "div-drawable.json",
|
|
"$description": "translations.json#/div_container_separator_style"
|
|
},
|
|
"margins": {
|
|
"$ref": "div-edge-insets.json",
|
|
"$description": "translations.json#/div_base_margins",
|
|
"platforms": []
|
|
}
|
|
},
|
|
"required": [
|
|
"style"
|
|
]
|
|
}
|
|
},
|
|
"allOf": [
|
|
{
|
|
"$ref": "div-base.json"
|
|
},
|
|
{
|
|
"$ref": "div-actionable.json"
|
|
},
|
|
{
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"container"
|
|
]
|
|
},
|
|
"content_alignment_vertical": {
|
|
"$ref": "div-content-alignment-vertical.json",
|
|
"default_value": "top",
|
|
"$description": "translations.json#/div_container_content_alignment_vertical"
|
|
},
|
|
"content_alignment_horizontal": {
|
|
"$ref": "div-content-alignment-horizontal.json",
|
|
"default_value": "left",
|
|
"$description": "translations.json#/div_container_content_alignment_horizontal"
|
|
},
|
|
"orientation": {
|
|
"type": "string",
|
|
"enum": [
|
|
"vertical",
|
|
"horizontal",
|
|
"overlap"
|
|
],
|
|
"default_value": "vertical",
|
|
"$description": "translations.json#/div_container_orientation"
|
|
},
|
|
"layout_mode": {
|
|
"type": "string",
|
|
"enum": [
|
|
"no_wrap",
|
|
"wrap"
|
|
],
|
|
"default_value": "no_wrap",
|
|
"$description": "translations.json#/div_container_layout_mode"
|
|
},
|
|
"separator": {
|
|
"$ref": "#/definitions/separator",
|
|
"$description": "translations.json#/div_container_separator"
|
|
},
|
|
"line_separator": {
|
|
"$ref": "#/definitions/separator",
|
|
"$description": "translations.json#/div_container_line_separator"
|
|
},
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "div.json"
|
|
},
|
|
"minItems": 1,
|
|
"$description": "translations.json#/div_container_items"
|
|
},
|
|
"aspect": {
|
|
"$ref": "div-aspect.json",
|
|
"$description": "translations.json#/div_container_aspect"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"required": [
|
|
"type",
|
|
"items"
|
|
]
|
|
}
|