div-action-scroll-to

Scrolls or switches container to given destination provided by destination.

Parameters

Parameters Description
destination

object

Required parameter.

Specifies destination of scroll:

  • index - scroll or switch to item with index provided by value;
  • offset - scroll to position measured in dp from container's start and provided by value. Applicable only in gallery;
  • start - scrolls to start of container;
  • end - scrolls to end of container.
  • .

    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.

    Identifier of the view that is going to be manipulated.

    Available platforms: Android.

    type

    string

    Required parameter.

    The value must always be scroll_to.

    Available platforms: Android.

    animated

    bool

    If true (default value) scroll will be animated, else not.

    Default value: true.

    Available platforms: Android.

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