| OLD | NEW |
| 1 | 1 |
| 2 <!--- | 2 <!--- |
| 3 | 3 |
| 4 This README is automatically generated from the comments in these files: | 4 This README is automatically generated from the comments in these files: |
| 5 iron-multi-selectable.html iron-selectable.html iron-selector.html | 5 iron-multi-selectable.html iron-selectable.html iron-selector.html |
| 6 | 6 |
| 7 Edit those files, and our readme bot will duplicate them over here! | 7 Edit those files, and our readme bot will duplicate them over here! |
| 8 Edit this file, and the bot will squash your changes :) | 8 Edit this file, and the bot will squash your changes :) |
| 9 | 9 |
| 10 The bot does some handling of markdown. Please file a bug if it does the wrong | 10 The bot does some handling of markdown. Please file a bug if it does the wrong |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 Example: | 40 Example: |
| 41 | 41 |
| 42 ```html | 42 ```html |
| 43 <iron-selector attr-for-selected="name" selected="foo"> | 43 <iron-selector attr-for-selected="name" selected="foo"> |
| 44 <div name="foo">Foo</div> | 44 <div name="foo">Foo</div> |
| 45 <div name="bar">Bar</div> | 45 <div name="bar">Bar</div> |
| 46 <div name="zot">Zot</div> | 46 <div name="zot">Zot</div> |
| 47 </iron-selector> | 47 </iron-selector> |
| 48 ``` | 48 ``` |
| 49 | 49 |
| 50 If no matching element is found using `attForSelected`, use `fallbackSelection
` as fallback. | 50 You can specify a default fallback with `fallbackSelection` in case the `selec
ted` attribute does |
| 51 not match the `attrForSelected` attribute of any elements. |
| 51 | 52 |
| 52 Example: | 53 Example: |
| 53 | 54 |
| 54 ```html | 55 ```html |
| 55 <iron-selector attr-for-selected="name" selected="non-existing" | 56 <iron-selector attr-for-selected="name" selected="non-existing" |
| 56 fallback-selection="default"> | 57 fallback-selection="default"> |
| 57 <div name="foo">Foo</div> | 58 <div name="foo">Foo</div> |
| 58 <div name="bar">Bar</div> | 59 <div name="bar">Bar</div> |
| 59 <div name="default">Default</div> | 60 <div name="default">Default</div> |
| 60 </iron-selector> | 61 </iron-selector> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 81 <div>Item 2</div> | 82 <div>Item 2</div> |
| 82 <div>Item 3</div> | 83 <div>Item 3</div> |
| 83 </iron-selector> | 84 </iron-selector> |
| 84 ``` | 85 ``` |
| 85 | 86 |
| 86 | 87 |
| 87 | 88 |
| 88 <!-- No docs for Polymer.IronMultiSelectableBehavior found. --> | 89 <!-- No docs for Polymer.IronMultiSelectableBehavior found. --> |
| 89 | 90 |
| 90 <!-- No docs for Polymer.IronSelectableBehavior found. --> | 91 <!-- No docs for Polymer.IronSelectableBehavior found. --> |
| OLD | NEW |