div-action-set-state

Applies a new appearance to the 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 the format div_data_state_id/id/state_id'. Can be hierarchical: div_data_state_id/id_1/state_id_1/../id_n/state_id_n. Consists of:<li>div_data_state_id — the numeric value of the state_idof thestateobject indata</li><li>'id — the id value of the state object

  • state_id — the 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 will switch to the original one (default value) when the element is recreated
  • false — the change is permanent
  • Default value: true.

    Available platforms: Android.

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