3
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
Code distributed by Google as part of the polymer project is also
8
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
13
<title>iron-range-behavior demo</title>
15
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
17
<link rel="import" href="../iron-range-behavior.html">
18
<link rel="import" href="../../iron-input/iron-input.html">
23
font-family: sans-serif;
31
<dom-module id="x-progressbar">
36
background-color: #555;
39
box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.5);
43
background-color: #999;
46
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
56
<div class="progress" horizontal center layout style$="{{_computeStyle(ratio)}}">
57
<div class="progress-value"><span>{{ratio}}</span>%</div>
63
HTMLImports.whenReady(function() {
67
behaviors: [Polymer.IronRangeBehavior],
69
_computeStyle: function(ratio) {
70
return 'width: ' + ratio + '%;';
76
<x-progressbar min="0" max="200" value="120"></x-progressbar>