OLD | NEW |
1 | 1 /** |
2 /** | |
3 `iron-selector` is an element which can be used to manage a list of elements | 2 `iron-selector` is an element which can be used to manage a list of elements |
4 that can be selected. Tapping on the item will make the item selected. The `
selected` indicates | 3 that can be selected. Tapping on the item will make the item selected. The `
selected` indicates |
5 which item is being selected. The default is to use the index of the item. | 4 which item is being selected. The default is to use the index of the item. |
6 | 5 |
7 Example: | 6 Example: |
8 | 7 |
9 <iron-selector selected="0"> | 8 <iron-selector selected="0"> |
10 <div>Item 1</div> | 9 <div>Item 1</div> |
11 <div>Item 2</div> | 10 <div>Item 2</div> |
12 <div>Item 3</div> | 11 <div>Item 3</div> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 */ | 45 */ |
47 | 46 |
48 Polymer({ | 47 Polymer({ |
49 | 48 |
50 is: 'iron-selector', | 49 is: 'iron-selector', |
51 | 50 |
52 behaviors: [ | 51 behaviors: [ |
53 Polymer.IronMultiSelectableBehavior | 52 Polymer.IronMultiSelectableBehavior |
54 ] | 53 ] |
55 | 54 |
56 }); | 55 }); |
57 | |
OLD | NEW |