div-action
It defines an action when clicking on an element.
Parameters
Parameters | Description |
---|---|
log_id |
string Required parameter. Logging ID. |
download_callbacks |
object Callbacks that are called after data loading. The value has the type Available platforms: Android, iOS, web. |
is_enabled |
bool_int The parameter disables the action. Disabled actions stop listening to their associated event (clicks, changes in visibility, and so on). Default value: |
log_url |
string URL for logging. The value must be a valid URL. |
menu_items |
array Context menu. |
payload |
object Additional parameters, passed to the host application. |
referer |
string Referer URL for logging. The value must be a valid URL. Available platforms: Android, iOS. |
scope_id |
string The ID of the element within which the specified action will be performed. Available platforms: Android, iOS, web. |
target |
string The tab in which the URL must be opened. Possible values: Available platforms: web. |
typed |
object The value has the type List of possible values: |
url |
string URL. Possible values: The value must be a valid URL. |
menu_item
Parameters | Description |
---|---|
text |
string Required parameter. Menu item title. |
action |
object One action when clicking on a menu item. Not used if the The value has the type |
actions |
array Multiple actions when clicking on a menu item. |
JSON
{
download_callbacks: {
on_fail_actions: [ div-action, ... ],
on_success_actions: [ div-action, ... ]
},
is_enabled: "bool_int",
log_id*: "string",
log_url: "string",
menu_items: [
{
action: div-action,
actions: [ div-action, ... ],
text*: "string"
},
...
],
payload: "object",
referer: "string",
scope_id: "string",
target: "string",
typed: div-action-typed,
url: "string"
}