forked from OnsenUI/playground
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogress.html
More file actions
47 lines (37 loc) · 1.23 KB
/
Copy pathprogress.html
File metadata and controls
47 lines (37 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Onsen UI App</title>
<script>
ons.bootstrap()
.controller('PageController', function($interval) {
this.v = 20;
$interval(function() {
this.v = (this.v + 2) % 102;
}.bind(this), 400)
});
</script>
</head>
<body>
<ons-page ng-controller="PageController as page">
<ons-toolbar>
<div class="center">Progress</div>
</ons-toolbar>
<ons-progress-bar value="{{page.v}}"></ons-progress-bar>
<div style="margin: 20px auto; width: 320px;">
<p>Loading stuff...</p>
<ons-progress-bar value="20" secondary-value="50"></ons-progress-bar>
</div>
<ons-progress-bar indeterminate></ons-progress-bar>
<ons-progress-circular value="10"></ons-progress-circular>
<ons-progress-circular value="20" secondary-value="50"></ons-progress-circular>
<ons-progress-circular indeterminate></ons-progress-circular>
</ons-page>
</body>
</html>
<!-- info
## Progress
Onsen UI provide two different progress element: `<ons-progress-bar>` and `ons-progress-circular`.
These elements takes two different values in `value` and `secondary-value` attributes. `indeterminate` attribute is also available.
-->