mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-19 14:20:22 +08:00
809 B
809 B
nav-title | title | environment | description | previous_url |
---|---|---|---|---|
slider How-To | slider | nativescript | Examples for using slider | /ApiReference/ui/slider/HOW-TO |
Slider
Using a slider requires the Slider module. {%snippet article-require-slider%}
Binding the Progress and Slider value properties to a observable view-model property.
<Page loaded="pageLoaded">
<StackLayout orientation="vertical">
{%raw%}<Progress value="{{ someProperty }}" />
<Slider value="{{ someProperty }}" />{%endraw%}
</StackLayout>
</Page>
{%snippet article-binding-slider-properties%}
Creating a slider
{%snippet article-creating-slider%}
Setting the slider value and bounds
{%snippet article-setting-slider-values%}
Binding value property to a model
{%snippet article-binding-value-property%}