div-action-set-cursor-position

Sets the cursor position in the specified input field.

Parameters

Parameters Description
id

string

Required parameter.

ID of the input field.

Available platforms: Android, iOS, web.

position

object

Required parameter.

Defines the cursor position. If end is not set, or if end is equal to start, it will just be the cursor position, if both are set and the values are different, part of the text will be selected. Use 0 to indicate the beginning of the text, -1 for the end.

The value has the type position.

Available platforms: Android, iOS, web.

type

string

Required parameter.

The value must always be set_cursor_position.

Available platforms: Android, iOS, web.

position

Parameters Description
start

int

Required parameter.

type

string

Required parameter.

The value must always be absolute.

end

int

JSON
{
  type*: "set_cursor_position",
  id*: "string",
  position*: {
    type*: "absolute",
    end: "int",
    start*: "int"
  }
}