div-action-scroll-to

Scrolls to a position or switches to the container element specified by the destination parameter.

Parameters

Parameters Description
destination

object

Required parameter.

Defines the scrolling end position:

  • index: Scroll to the element with the index provided in value
  • offset: Scroll to the position specified in value and measured in dp from the start of the container. Applies only in gallery;
  • start: Scroll to the container start;
  • end: Scroll to the container end.
  • The value has the type div-action-scroll-destination.

    Available platforms: Android.

    List of possible values:

  • offset_destination
  • index_destination
  • start_destination
  • end_destination
  • id

    string

    Required parameter.

    ID of the element where the action should be performed.

    Available platforms: Android.

    type

    string

    Required parameter.

    The value must always be scroll_to.

    Available platforms: Android.

    animated

    bool

    Enables scrolling animation.

    Default value: true.

    Available platforms: Android.

    JSON
    {
      type*: "scroll_to",
      animated: "bool",
      destination*: div-action-scroll-destination,
      id*: "string"
    }