A native styled scroll indicator for usage with AppFlickable. More...
Import Statement: | import Felgo 4.0 |
Since: | Felgo 2.18.4 |
Inherits: |
Allows to add a vertical scroll indicator for any given AppFlickable.
Note: This QML type was renamed from ScrollIndicator
in Felgo 4.0.0. This is because the name conflicted with the already existing ScrollIndicator type from Qt Quick Controls 2.
import QtQuick import Felgo App { NavigationStack { AppPage { title: "AppScrollIndicator Example" AppFlickable { id: appFlickable anchors.fill: parent contentHeight: content.height Column { id: content width: parent.width Repeater { model: 50 AppText { width: content.width height: dp(50) text: "Text Item #"+index horizontalAlignment: Text.AlignHCenter } } } } AppScrollIndicator { flickable: appFlickable } } // Page } }
See the guide Use ScrollViews and ListViews in Your App for different examples of scrollable views, like a list view.
flickable : Flickable |
Set this property to the target AppFlickable for the scroll indicator. The indicator position then reflects the current scroll position of the target.
minHeight : real |
The minimum height of the scroll indicator. Matches platform-specific values by default.
verticalOffset : real |
The vertical offset to the top and bottom. By default the scroll indicator uses an offest of 2dp
.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: