mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-20 07:26:11 +08:00

Needed to have a nice structured cookbook dir in the docs Includes: Move the data-module tests under the data dir Move the frame tests under the ui dir Rename the dialog.md file to dialogs.md Fix the web-view title Add previous_url attributes to each article for SEO Rename the style dir to styling to match the reference Fix the frame-tests path
27 lines
721 B
Markdown
27 lines
721 B
Markdown
---
|
|
nav-title: "progress How-To"
|
|
title: "progress"
|
|
description: "Examples for using progress"
|
|
previous_url: /ApiReference/ui/progress/HOW-TO
|
|
---
|
|
# Progress
|
|
Using the progress view requires the Progress module.
|
|
<snippet id='article-require-progress-module'/>
|
|
Binding the Progress value property to a view-model property.
|
|
``` XML
|
|
<Page loaded="pageLoaded">
|
|
{%raw%}<Progress value="{{ someProperty }}" />{%endraw%}
|
|
</Page>
|
|
```
|
|
``` JavaScript
|
|
function pageLoaded(args) {
|
|
var page = args.object;
|
|
page.bindingContext = { someProperty : 42 };
|
|
}
|
|
exports.pageLoaded = pageLoaded;
|
|
```
|
|
### Creating a progress view
|
|
<snippet id='article-create-progress-view'>
|
|
### Setting up the progress view
|
|
<snippet id='article-set-value'/>
|