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": "RTL and LTR text aligned to start/end in LTR layout direction context. Text should be aligned according the title of the text-block.",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web",
|
|
"flutter"
|
|
],
|
|
"templates": {
|
|
"text_block": {
|
|
"type": "text",
|
|
"width": {
|
|
"type": "match_parent"
|
|
},
|
|
"height": {
|
|
"type": "wrap_content"
|
|
},
|
|
"margins": {
|
|
"left": 16,
|
|
"top": 16,
|
|
"right": 16,
|
|
"bottom": 16
|
|
},
|
|
"paddings": {
|
|
"left": 16,
|
|
"top": 16,
|
|
"right": 16,
|
|
"bottom": 16
|
|
},
|
|
"alpha": 1,
|
|
"alignment_horizontal": "center",
|
|
"alignment_vertical": "center",
|
|
"background": [
|
|
{
|
|
"type": "solid",
|
|
"color": "#0e000000"
|
|
}
|
|
],
|
|
"font_size": 18,
|
|
"font_weight": "medium",
|
|
"text_alignment_vertical": "center",
|
|
"text_color": "#000000"
|
|
}
|
|
},
|
|
"card": {
|
|
"log_id": "container",
|
|
"states": [
|
|
{
|
|
"state_id": 0,
|
|
"div": {
|
|
"type": "container",
|
|
"orientation": "vertical",
|
|
"margins": {
|
|
"top": 24,
|
|
"bottom": 24
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "text_block",
|
|
"text_alignment_horizontal": "start",
|
|
"text": "LTR text aligned to START"
|
|
},
|
|
{
|
|
"type": "text_block",
|
|
"text_alignment_horizontal": "end",
|
|
"text": "LTR text aligned to END"
|
|
},
|
|
{
|
|
"type": "text_block",
|
|
"text_alignment_horizontal": "start",
|
|
"text": "تمت محاذاة نص RTL إلى START"
|
|
},
|
|
{
|
|
"type": "text_block",
|
|
"text_alignment_horizontal": "end",
|
|
"text": "تمت محاذاة نص RTL إلى END"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|