Progress

Using the progress view requires the Progress module.

import * as progressModule from "tns-core-modules/ui/progress";

Binding the Progress value property to a view-model property.

<Page loaded="pageLoaded">
  <Progress value="{{ someProperty }}" />
</Page>
function pageLoaded(args) {
  var page = args.object;
  page.bindingContext = { someProperty : 42 };
}
exports.pageLoaded = pageLoaded;

Creating a progress view

var progress = new progressModule.Progress();

Setting up the progress view

progress.maxValue = 255;
progress.value = 16;

Stay connected with NativeScript

(expect a newsletter every 4-8 weeks)

NativeScript
NativeScript is licensed under the Apache 2.0 license .
© Progress Software Corporation. All Rights Reserved.