Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
in demo, use core-input so it's more compatible with core-range
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Sep 3, 2014
1 parent 2add109 commit d8711a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "core-range",
"private": true,
"dependencies": {
"polymer": "Polymer/polymer#master"
"polymer": "Polymer/polymer#master",
"core-input": "Polymer/core-input#master"
}
}
9 changes: 7 additions & 2 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<script src="../platform/platform.js"></script>

<link rel="import" href="core-range.html">
<link rel="import" href="../core-input/core-input.html">

<style>

Expand Down Expand Up @@ -46,13 +47,17 @@
-moz-box-sizing: border-box;
}

core-input {
border: 1px solid #ccc;
}

</style>

<core-range min="0" max="200" value="{{value}}" ratio="{{ratio}}"></core-range>
<core-range min="0" max="200" step="0.5" value="{{value}}" ratio="{{ratio}}"></core-range>

<div class="progress" style="width: {{ratio}}%;">{{ratio}}%</div><br>

value (0 - 200): <input value="{{value}}">
value (0 - 200): <core-input value="{{value}}"></core-input>

</template>

Expand Down

0 comments on commit d8711a2

Please sign in to comment.