OLD | NEW |
1 <!-- | 1 <!-- |
2 @license | 2 @license |
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 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.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.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/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
7 Code distributed by Google as part of the polymer project is also | 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/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
9 --> | 9 --> |
10 | 10 |
11 <link rel="import" href="../polymer/polymer.html"> | 11 <link rel="import" href="../polymer/polymer.html"> |
| 12 <link rel="import" href="../paper-styles/color.html"> |
| 13 <link rel="import" href="../paper-styles/default-theme.html"> |
12 <link rel="import" href="../paper-ripple/paper-ripple.html"> | 14 <link rel="import" href="../paper-ripple/paper-ripple.html"> |
13 <link rel="import" href="../paper-behaviors/paper-inky-focus-behavior.html"> | 15 <link rel="import" href="../paper-behaviors/paper-inky-focus-behavior.html"> |
14 | 16 |
15 <!-- | 17 <!-- |
16 `paper-toggle-button` provides a ON/OFF switch that user can toggle the state | 18 `paper-toggle-button` provides a ON/OFF switch that user can toggle the state |
17 by tapping or by dragging the switch. | 19 by tapping or by dragging the switch. |
18 | 20 |
19 Example: | 21 Example: |
20 | 22 |
21 <paper-toggle-button></paper-toggle-button> | 23 <paper-toggle-button></paper-toggle-button> |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 165 |
164 _trackEnd: function(track) { | 166 _trackEnd: function(track) { |
165 this.$.toggleButton.classList.remove('dragging'); | 167 this.$.toggleButton.classList.remove('dragging'); |
166 this.transform('', this.$.toggleButton); | 168 this.transform('', this.$.toggleButton); |
167 } | 169 } |
168 | 170 |
169 }); | 171 }); |
170 </script> | 172 </script> |
171 | 173 |
172 </dom-module> | 174 </dom-module> |
OLD | NEW |