-
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.
Pull Down Refresh: added new template
[Issue] #1561 [Problem] Pull down refresh needs implemented [Solution] - added new template in UIComponentes - added new Page option: data-pull-down-refresh=true|false Signed-off-by: Tomasz Lukawski <t.lukawski@samsung.com>
- Loading branch information
1 parent
abb3986
commit 610db19
Showing
8 changed files
with
102 additions
and
1 deletion.
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
28 changes: 28 additions & 0 deletions
28
examples/mobile/UIComponents/components/progress/pull-down-refresh.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,28 @@ | ||
<!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="pull-down-refresh" data-pull-down-refresh="true"> | ||
<header> | ||
<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> | ||
<h1> | ||
Pull down refresh | ||
</h1> | ||
</header> | ||
<div class="ui-content"></div> | ||
<!-- /content --> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.ui-pull-down-refresh { | ||
position: absolute; | ||
display: block; | ||
top: (62 + 56) * @px_base; /* 56px below header */ | ||
width: 40 * @px_base; | ||
height: 40 * @px_base; | ||
left: calc(~"50% - "28 * @px_base); | ||
border-radius: 100%; | ||
margin: 5 * @px_base 8 * @px_base 10 * @px_base; | ||
background-color: var(--pull-down-refresh-bg-color); | ||
box-shadow: 0 2.5 * @px_base 8 * @px_base 0 var(--pull-down-refresh-shadow-1-color), 0 0 2 * @px_base 0 var(--pull-down-refresh-shadow-2-color); | ||
|
||
&:after { | ||
content: ""; | ||
width: 24 * @px_base; | ||
height: 24 * @px_base; | ||
position: absolute; | ||
mask-image: url(images/9_Progress/tw_ic_progress_refresh_mtrl.svg); | ||
mask-size: 24 * @px_base; | ||
background-color: var(--primary-color); | ||
mask-repeat: no-repeat; | ||
mask-position: center; | ||
padding: 8 * @px_base; | ||
} | ||
} |
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
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