-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Progress in Appbar: add new styles and template
[Issue] #1558 [Problem] Progress in AppBar needs implemented [Solution] - added new template to UIComponents - added new styles Signed-off-by: Tomasz Lukawski <t.lukawski@samsung.com>
- Loading branch information
1 parent
9dab648
commit 54be953
Showing
9 changed files
with
141 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
examples/mobile/UIComponents/components/progress/progress-bar-appbar/progress-bar.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta content="width=device-width, user-scalable=no" name="viewport" /> | ||
<link href="../../../lib/tau/mobile/theme/default/tau.css" rel="stylesheet" /> | ||
<link href="../../../css/style.css" rel="stylesheet" /> | ||
<script data-build-remove="false" src="../../../lib/tau/mobile/js/tau.js"></script> | ||
<title>Progress Bar</title> | ||
</head> | ||
|
||
<body> | ||
<div class="ui-page" id="progress-bar-appbar-page"> | ||
<header> | ||
<div class="ui-appbar-controls-container"> | ||
<div class="ui-appbar-left-icons-container"> | ||
<a href="#" class="ui-btn ui-btn-icon ui-btn-icon-back" data-style="flat" data-rel="back"></a> | ||
</div> | ||
<div class="ui-progress" data-type="bar" data-value="50" id="progress-bar-appbar"></div> | ||
</div> | ||
<h1> | ||
Progress Bar in AppBar | ||
</h1> | ||
</header> | ||
<div class="ui-content"></div> | ||
<!-- /content --> | ||
<script src="progress-bar.js"></script> | ||
</div> | ||
<!-- /page --> | ||
</body> | ||
|
||
</html> |
22 changes: 22 additions & 0 deletions
22
examples/mobile/UIComponents/components/progress/progress-bar-appbar/progress-bar.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
(function (tau) { | ||
"use strict"; | ||
var page = document.getElementById("progress-bar-appbar-page"), | ||
progressbar = document.getElementById("progress-bar-appbar"), | ||
timer, | ||
|
||
pageBeforeShowHandler = function () { | ||
var progressbarWidget = new tau.widget.Progress(progressbar); | ||
|
||
timer = setTimeout(function () { | ||
progressbarWidget.value(100); | ||
}, 3000); | ||
}, | ||
|
||
pageBeforeHideHandler = function () { | ||
clearTimeout(timer); | ||
}; | ||
|
||
page.addEventListener("pagebeforeshow", pageBeforeShowHandler); | ||
page.addEventListener("pagebeforehide", pageBeforeHideHandler); | ||
|
||
}(window.tau)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ents/progress/progress-bar/progressbar.js → ...nts/progress/progress-bar/progress-bar.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
examples/mobile/UIComponents/components/progress/progress-circle-appbar/progress-circle.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta content="width=device-width, user-scalable=no" name="viewport" /> | ||
<link href="../../../lib/tau/mobile/theme/default/tau.css" rel="stylesheet" /> | ||
<link href="../../../css/style.css" rel="stylesheet" /> | ||
<script data-build-remove="false" src="../../../lib/tau/mobile/js/tau.js"></script> | ||
<title>Progress Bar</title> | ||
</head> | ||
|
||
<body> | ||
<div class="ui-page" id="progress-circle-appbar-page"> | ||
<header> | ||
<div class="ui-appbar-controls-container"> | ||
<div class="ui-appbar-left-icons-container"> | ||
<a href="#" class="ui-btn ui-btn-icon ui-btn-icon-back" data-style="flat" data-rel="back"></a> | ||
</div> | ||
<div class="ui-progress" data-type="indeterminatecircle"></div> | ||
</div> | ||
<h1> | ||
Progress Circle in AppBar | ||
</h1> | ||
</header> | ||
<div class="ui-content"></div> | ||
</div> | ||
<!-- /page --> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters