OLD | NEW |
1 | 1 /** @polymerBehavior */ |
2 | |
3 /** @polymerBehavior */ | |
4 Polymer.IronSelectableBehavior = { | 2 Polymer.IronSelectableBehavior = { |
5 | 3 |
6 properties: { | 4 properties: { |
7 | 5 |
8 /** | 6 /** |
9 * If you want to use the attribute value of an element for `selected` ins
tead of the index, | 7 * If you want to use the attribute value of an element for `selected` ins
tead of the index, |
10 * set this to the name of the attribute. | 8 * set this to the name of the attribute. |
11 * | 9 * |
12 * @attribute attrForSelected | 10 * @attribute attrForSelected |
13 * @type {string} | 11 * @type {string} |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 } | 281 } |
284 }, | 282 }, |
285 | 283 |
286 _itemActivate: function(value, item) { | 284 _itemActivate: function(value, item) { |
287 if (!this.fire('iron-activate', | 285 if (!this.fire('iron-activate', |
288 {selected: value, item: item}, {cancelable: true}).defaultPrevented) { | 286 {selected: value, item: item}, {cancelable: true}).defaultPrevented) { |
289 this.select(value); | 287 this.select(value); |
290 } | 288 } |
291 } | 289 } |
292 | 290 |
293 }; | 291 }; |
294 | |
OLD | NEW |