Files
divkit/test_data/regression_test_data/input.json
T
2022-09-06 10:43:11 +03:00

111 lines
2.7 KiB
JSON

{
"log_id": "input",
"variables": [
{
"name": "my_edit_text",
"type": "string",
"value": "Initial text"
}
],
"states": [
{
"state_id": 0,
"div": {
"type": "container",
"width": {
"type": "match_parent"
},
"height": {
"type": "wrap_content"
},
"items": [
{
"type": "input",
"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.0,
"alignment_horizontal": "center",
"alignment_vertical": "center",
"background": [
{
"type": "solid",
"color": "#FFFF00"
}
],
"border": {
"corner_radius": 4,
"has_shadow": 1
},
"font_size": 20,
"font_weight": "medium",
"text_color": "#1ABC9C",
"text_variable": "my_edit_text",
"hint_text": "Hint",
"hint_color": "#F1C40F",
"highlight_color": "#E74C3C",
"max_visible_lines": 2,
"line_height": 40,
"select_all_on_focus": 1
},
{
"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.0,
"alignment_horizontal": "center",
"alignment_vertical": "center",
"background": [
{
"type": "solid",
"color": "#34495E"
}
],
"border": {
"corner_radius": 4,
"has_shadow": 1
},
"font_size": 20,
"font_weight": "medium",
"text_alignment_horizontal": "center",
"text_alignment_vertical": "center",
"text_color": "#1ABC9C",
"text": "Text:\n@{my_edit_text}"
}
]
}
}
]
}