OLD | NEW |
1 | 1 |
2 Polymer({ | 2 Polymer({ |
3 is: 'paper-checkbox', | 3 is: 'paper-checkbox', |
4 | 4 |
5 // The custom properties shim is currently an opt-in feature. | 5 // The custom properties shim is currently an opt-in feature. |
6 enableCustomStyleProperties: true, | 6 enableCustomStyleProperties: true, |
7 | 7 |
8 behaviors: [ | 8 behaviors: [ |
9 Polymer.PaperRadioButtonBehavior | 9 Polymer.PaperRadioButtonBehavior |
10 ], | 10 ], |
(...skipping 21 matching lines...) Expand all Loading... |
32 * Gets or sets the state, `true` is checked and `false` is unchecked. | 32 * Gets or sets the state, `true` is checked and `false` is unchecked. |
33 * | 33 * |
34 * @attribute checked | 34 * @attribute checked |
35 * @type boolean | 35 * @type boolean |
36 * @default false | 36 * @default false |
37 */ | 37 */ |
38 checked: { | 38 checked: { |
39 type: Boolean, | 39 type: Boolean, |
40 value: false, | 40 value: false, |
41 reflectToAttribute: true, | 41 reflectToAttribute: true, |
| 42 notify: true, |
42 observer: '_checkedChanged' | 43 observer: '_checkedChanged' |
43 }, | 44 }, |
44 | 45 |
45 /** | 46 /** |
46 * If true, the user cannot interact with this element. | 47 * If true, the user cannot interact with this element. |
47 * | 48 * |
48 * @attribute disabled | 49 * @attribute disabled |
49 * @type boolean | 50 * @type boolean |
50 * @default false | 51 * @default false |
51 */ | 52 */ |
(...skipping 28 matching lines...) Expand all Loading... |
80 return 'checked'; | 81 return 'checked'; |
81 } | 82 } |
82 }, | 83 }, |
83 | 84 |
84 _computeCheckmarkClass: function(checked) { | 85 _computeCheckmarkClass: function(checked) { |
85 if (!checked) { | 86 if (!checked) { |
86 return 'hidden'; | 87 return 'hidden'; |
87 } | 88 } |
88 } | 89 } |
89 }) | 90 }) |
OLD | NEW |