mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
e46db6f1f0
new regression label new regression cards
94 lines
2.1 KiB
JSON
94 lines
2.1 KiB
JSON
{
|
|
"templates": {
|
|
"button": {
|
|
"type": "text",
|
|
"width": {
|
|
"type": "match_parent"
|
|
},
|
|
"height": {
|
|
"type": "wrap_content"
|
|
},
|
|
"paddings": {
|
|
"left": 16,
|
|
"top": 16,
|
|
"right": 16,
|
|
"bottom": 16
|
|
},
|
|
"margins": {
|
|
"top": 16,
|
|
"bottom": 16,
|
|
"left": 16,
|
|
"right": 16
|
|
},
|
|
"border": {
|
|
"corner_radius": 8
|
|
},
|
|
"background": [
|
|
{
|
|
"type": "solid",
|
|
"color": "#0E000000"
|
|
}
|
|
],
|
|
"font_size": 16,
|
|
"font_weight": "medium",
|
|
"text_alignment_vertical": "center",
|
|
"text_alignment_horizontal": "center",
|
|
"text_color": "#000000",
|
|
"alpha": 1.0,
|
|
"alignment_horizontal": "center",
|
|
"alignment_vertical": "center"
|
|
}
|
|
},
|
|
"card": {
|
|
"log_id": "card",
|
|
"states": [
|
|
{
|
|
"state_id": 0,
|
|
"div": {
|
|
"type": "state",
|
|
"width": {
|
|
"type": "match_parent"
|
|
},
|
|
"height": {
|
|
"type": "match_parent"
|
|
},
|
|
"content_alignment_vertical": "center",
|
|
"div_id": "state_container",
|
|
"default_state_id": "default",
|
|
"states": [
|
|
{
|
|
"state_id": "nondefaut",
|
|
"div": {
|
|
"type": "button",
|
|
"text": "Nondefault state",
|
|
"actions": [
|
|
{
|
|
"log_id": "default state",
|
|
"url": "div-action://set_state?state_id=0/state_container/default"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"state_id": "default",
|
|
"div": {
|
|
"type": "button",
|
|
"text": "Default state",
|
|
"actions": [
|
|
{
|
|
"log_id": "nondefault state",
|
|
"url": "div-action://set_state?state_id=0/state_container/nondefaut"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"state_id": "empty"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|