| 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 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 `name`, set `attrForSelected` to `name`. | 31 `name`, set `attrForSelected` to `name`. |
| 32 | 32 |
| 33 Example: | 33 Example: |
| 34 | 34 |
| 35 <iron-selector attr-for-selected="name" selected="foo"> | 35 <iron-selector attr-for-selected="name" selected="foo"> |
| 36 <div name="foo">Foo</div> | 36 <div name="foo">Foo</div> |
| 37 <div name="bar">Bar</div> | 37 <div name="bar">Bar</div> |
| 38 <div name="zot">Zot</div> | 38 <div name="zot">Zot</div> |
| 39 </iron-selector> | 39 </iron-selector> |
| 40 | 40 |
| 41 If no matching element is found using `attForSelected`, use `fallbackSelection
` as fallback. | 41 You can specify a default fallback with `fallbackSelection` in case the `selec
ted` attribute does |
| 42 not match the `attrForSelected` attribute of any elements. |
| 42 | 43 |
| 43 Example: | 44 Example: |
| 44 | 45 |
| 45 <iron-selector attr-for-selected="name" selected="non-existing" | 46 <iron-selector attr-for-selected="name" selected="non-existing" |
| 46 fallback-selection="default"> | 47 fallback-selection="default"> |
| 47 <div name="foo">Foo</div> | 48 <div name="foo">Foo</div> |
| 48 <div name="bar">Bar</div> | 49 <div name="bar">Bar</div> |
| 49 <div name="default">Default</div> | 50 <div name="default">Default</div> |
| 50 </iron-selector> | 51 </iron-selector> |
| 51 | 52 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 77 | 78 |
| 78 is: 'iron-selector', | 79 is: 'iron-selector', |
| 79 | 80 |
| 80 behaviors: [ | 81 behaviors: [ |
| 81 Polymer.IronMultiSelectableBehavior | 82 Polymer.IronMultiSelectableBehavior |
| 82 ] | 83 ] |
| 83 | 84 |
| 84 }); | 85 }); |
| 85 | 86 |
| 86 </script> | 87 </script> |
| OLD | NEW |