NativeScript-Vue 2.0: Back to the Vueture (Webinar) is now on YouTube
ScrollView

This is an overview of the most common usage of ScrollView. For more information about the available properties, methods, or events, head over to the complete API documentation for ScrollView.

<ScrollView> is a UI component that shows a scrollable content area. Content can be scrolled vertically or horizontally.


<ScrollView orientation="horizontal">
  <StackLayout orientation="horizontal">
    <Label text="this" />
    <Label text="text" />
    <Label text="scrolls" />
    <Label text="horizontally" />
    <Label text="if necessary" />
  </StackLayout>
</ScrollView>

Props

nametypedescription
orientationStringGets or sets the direction in which the content can be scrolled: horizontal or vertical.
Default value: vertical.
scrollBarIndicatorVisibleBooleanSpecifies if the scrollbar is visible.
Default value: true.

Events

NameDescription
scrollEmitted when a scroll event occurs.

Native component

AndroidiOS
android.viewUIScrollView
Contributors