mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
84 lines
1.9 KiB
JSON
84 lines
1.9 KiB
JSON
{
|
|
"description": "Container with content aligned left-to-right. Start/end text blocks should be aligned according to the alignment (left-to-right), left/right must stay unchanged.",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
],
|
|
"templates": {
|
|
"text_block": {
|
|
"type": "text",
|
|
"font_size": 12,
|
|
"line_height": 15,
|
|
"text_alignment_horizontal": "center",
|
|
"text_alignment_vertical": "center",
|
|
"alignment_horizontal": "center",
|
|
"text_color": "#ffffff",
|
|
"width": {
|
|
"type": "fixed",
|
|
"value": 80
|
|
},
|
|
"paddings": {
|
|
"top": 13,
|
|
"bottom": 13,
|
|
"left": 8,
|
|
"right": 8
|
|
},
|
|
"background": [
|
|
{
|
|
"type": "solid",
|
|
"color": "#808080"
|
|
}
|
|
],
|
|
"border": {
|
|
"corner_radius": 16
|
|
}
|
|
}
|
|
},
|
|
"card": {
|
|
"log_id": "sample_card",
|
|
"states": [
|
|
{
|
|
"state_id": 0,
|
|
"div": {
|
|
"type": "container",
|
|
"orientation": "vertical",
|
|
"items": [
|
|
{
|
|
"type": "text_block",
|
|
"alignment_horizontal": "left",
|
|
"text": "left"
|
|
},
|
|
{
|
|
"type": "text_block",
|
|
"alignment_horizontal": "center",
|
|
"text": "center"
|
|
},
|
|
{
|
|
"type": "text_block",
|
|
"alignment_horizontal": "right",
|
|
"text": "right"
|
|
},
|
|
{
|
|
"type": "text_block",
|
|
"alignment_horizontal": "start",
|
|
"text": "start"
|
|
},
|
|
{
|
|
"type": "text_block",
|
|
"alignment_horizontal": "center",
|
|
"text": "center"
|
|
},
|
|
{
|
|
"type": "text_block",
|
|
"alignment_horizontal": "end",
|
|
"text": "end"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|