| OLD | NEW |
| 1 | 1 |
| 2 | 2 |
| 3 /** @polymerBehavior Polymer.IronButtonState */ | 3 /** |
| 4 * @demo demo/index.html |
| 5 * @polymerBehavior |
| 6 */ |
| 4 Polymer.IronButtonStateImpl = { | 7 Polymer.IronButtonStateImpl = { |
| 5 | 8 |
| 6 properties: { | 9 properties: { |
| 7 | 10 |
| 8 /** | 11 /** |
| 9 * If true, the user is currently holding down the button. | 12 * If true, the user is currently holding down the button. |
| 10 * | |
| 11 * @attribute pressed | |
| 12 * @type boolean | |
| 13 * @default false | |
| 14 */ | 13 */ |
| 15 pressed: { | 14 pressed: { |
| 16 type: Boolean, | 15 type: Boolean, |
| 17 readOnly: true, | 16 readOnly: true, |
| 18 value: false, | 17 value: false, |
| 19 reflectToAttribute: true, | 18 reflectToAttribute: true, |
| 20 observer: '_pressedChanged' | 19 observer: '_pressedChanged' |
| 21 }, | 20 }, |
| 22 | 21 |
| 23 /** | 22 /** |
| 24 * If true, the button toggles the active state with each tap or press | 23 * If true, the button toggles the active state with each tap or press |
| 25 * of the spacebar. | 24 * of the spacebar. |
| 26 * | |
| 27 * @attribute toggles | |
| 28 * @type boolean | |
| 29 * @default false | |
| 30 */ | 25 */ |
| 31 toggles: { | 26 toggles: { |
| 32 type: Boolean, | 27 type: Boolean, |
| 33 value: false, | 28 value: false, |
| 34 reflectToAttribute: true | 29 reflectToAttribute: true |
| 35 }, | 30 }, |
| 36 | 31 |
| 37 /** | 32 /** |
| 38 * If true, the button is a toggle and is currently in the active state. | 33 * If true, the button is a toggle and is currently in the active state. |
| 39 * | |
| 40 * @attribute active | |
| 41 * @type boolean | |
| 42 * @default false | |
| 43 */ | 34 */ |
| 44 active: { | 35 active: { |
| 45 type: Boolean, | 36 type: Boolean, |
| 46 value: false, | 37 value: false, |
| 47 notify: true, | 38 notify: true, |
| 48 reflectToAttribute: true, | 39 reflectToAttribute: true, |
| 49 observer: '_activeChanged' | 40 observer: '_activeChanged' |
| 50 }, | 41 }, |
| 51 | 42 |
| 52 /** | 43 /** |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 } | 162 } |
| 172 | 163 |
| 173 }; | 164 }; |
| 174 | 165 |
| 175 /** @polymerBehavior Polymer.IronButtonState */ | 166 /** @polymerBehavior Polymer.IronButtonState */ |
| 176 Polymer.IronButtonState = [ | 167 Polymer.IronButtonState = [ |
| 177 Polymer.IronA11yKeysBehavior, | 168 Polymer.IronA11yKeysBehavior, |
| 178 Polymer.IronButtonStateImpl | 169 Polymer.IronButtonStateImpl |
| 179 ]; | 170 ]; |
| 180 | 171 |
| OLD | NEW |