div-focus
Element behavior when focusing or losing focus.
JSON
{
background: [ div-background, ... ],
border: {
corner_radius: "int",
corners_radius: {
bottom-left: "int",
bottom-right: "int",
top-left: "int",
top-right: "int"
},
has_shadow: "bool_int",
shadow: {
alpha: "number",
blur: "int",
color: "string",
offset*: {
x*: {
unit: "string",
value*: "number"
},
y*: {
unit: "string",
value*: "number"
}
}
},
stroke: {
color*: "string",
unit: "string",
width: "int"
}
},
next_focus_ids: {
down: "string",
forward: "string",
left: "string",
right: "string",
up: "string"
},
on_blur: [
{
download_callbacks: {
on_fail_actions: [ div-action, ... ],
on_success_actions: [ div-action, ... ]
},
log_id*: "string",
log_url: "string",
menu_items: [
{
action: div-action,
actions: [ div-action, ... ],
text*: "string"
},
...
],
payload: "object",
referer: "string",
target: "string",
url: "string"
},
...
],
on_focus: [
{
download_callbacks: {
on_fail_actions: [ div-action, ... ],
on_success_actions: [ div-action, ... ]
},
log_id*: "string",
log_url: "string",
menu_items: [
{
action: div-action,
actions: [ div-action, ... ],
text*: "string"
},
...
],
payload: "object",
referer: "string",
target: "string",
url: "string"
},
...
]
}
Parameters
Parameters | Description |
---|---|
background | array Background of an element when it is in focus. It can contain multiple layers. An array must not be empty. |
border | object Border of an element when it's in focus. The value has the type |
next_focus_ids | object IDs of elements that will be next to get focus. The value has the type |
on_blur | array Actions when an element loses focus. An array must not be empty. |
on_focus | array Actions when an element gets focus. An array must not be empty. |
Parameters | Description |
---|---|
background | array Background of an element when it is in focus. It can contain multiple layers. An array must not be empty. |
border | object Border of an element when it's in focus. The value has the type |
next_focus_ids | object IDs of elements that will be next to get focus. The value has the type |
on_blur | array Actions when an element loses focus. An array must not be empty. |
on_focus | array Actions when an element gets focus. An array must not be empty. |
next_focus_ids
Parameters | Description |
---|---|
down | string A string must not be empty. |
forward | string A string must not be empty. |
left | string A string must not be empty. |
right | string A string must not be empty. |
up | string A string must not be empty. |
Parameters | Description |
---|---|
down | string A string must not be empty. |
forward | string A string must not be empty. |
left | string A string must not be empty. |
right | string A string must not be empty. |
up | string A string must not be empty. |