div-action-set-state

Switches the appearance of content in div-state.

Parameters

Parameters Description
state_id

string

Required parameter.

The path of the state inside state that needs to be activated. Set in div_data_state_id/id/state_id format. Can be hierarchical: div_data_state_id/id_1/state_id_1/../id_n/state_id_n. Consists of:

  • div_data_state_id - state_id numeric value of the state object in data;
  • id - id value of the state object;
  • state_id - state_id value of the state object in state.
  • Available platforms: Android.

    type

    string

    Required parameter.

    The value must always be set_state.

    Available platforms: Android.

    temporary

    bool

    Indicates a state change:

  • true: The change is temporary and when the element is re-created, the state will change back to the initial one (default value).
  • false - The state change is permanent.
  • Default value: true.

    Available platforms: Android.

    JSON
    {
      type*: "set_state",
      state_id*: "string",
      temporary: "bool"
    }