mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
50 lines
1.1 KiB
JSON
50 lines
1.1 KiB
JSON
{
|
|
"templates": {},
|
|
"card": {
|
|
"log_id": "snapshot_test_card",
|
|
"variables": [
|
|
{
|
|
"name": "checked",
|
|
"type": "string",
|
|
"value": "unchecked"
|
|
}
|
|
],
|
|
"states": [
|
|
{
|
|
"state_id": 0,
|
|
"div": {
|
|
"type": "state",
|
|
"id": "check",
|
|
"state_id_variable": "checked",
|
|
"states": [
|
|
{
|
|
"state_id": "unchecked",
|
|
"div": {
|
|
"type": "text",
|
|
"font_size": 45,
|
|
"text": "☐ Approved"
|
|
}
|
|
},
|
|
{
|
|
"state_id": "checked",
|
|
"div": {
|
|
"type": "text",
|
|
"font_size": 45,
|
|
"text": "☑ Approved"
|
|
}
|
|
}
|
|
],
|
|
"accessibility": {
|
|
"type": "checkbox",
|
|
"is_checked": "@{checked == 'checked'}"
|
|
},
|
|
"action": {
|
|
"log_id": "check",
|
|
"url": "div-action://set_variable?name=checked&value=@{checked == 'checked' ? 'unchecked' : 'checked'}"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|