modify snippets

This commit is contained in:
Nikolay Tsonev
2016-04-15 13:53:06 +03:00
parent 945aec0a72
commit fd7289a4c9
34 changed files with 707 additions and 695 deletions

View File

@@ -0,0 +1,25 @@
---
nav-title: "progress How-To"
title: "How-To"
description: "Examples for using progress"
---
# Progress
Using the progress view requires the Progress module.
<snippet id='article-require-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'/>