div-action-scroll-by

Scrolls scrollable container from current position by item_count or by offset, if both provided scroll action will be combined, negative numbers associated with backward scroll.

Parameters

Parameters Description
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_by.

Available platforms: Android.

animated

bool

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

Default value: true.

Available platforms: Android.

item_count

int

Count of container items to scroll, negative value is associated with backward scroll.

Default value: 0.

Available platforms: Android.

offset

int

Distance to scroll measured in dp from current position, negative value is associated with backward scroll. Applicable only in gallery.

Default value: 0.

Available platforms: Android.

overflow

string

Specifies how navigation will occur when the boundary elements are reached:

  • clamp — Transition will stop at the boundary element (default value);
  • ring — Transition will be to the beginning or the end depending on the current element.
  • Possible values: clamp, ring.

    Default value: clamp.

    Available platforms: Android.

    JSON
    {
      type*: "scroll_by",
      animated: "bool",
      id*: "string",
      item_count: "int",
      offset: "int",
      overflow: "string"
    }