4
This README is automatically generated from the comments in these files:
5
iron-multi-selectable.html iron-selectable.html iron-selector.html
7
Edit those files, and our readme bot will duplicate them over here!
8
Edit this file, and the bot will squash your changes :)
10
The bot does some handling of markdown. Please file a bug if it does the wrong
11
thing! https://github.com/PolymerLabs/tedium/issues
15
[![Build status](https://travis-ci.org/PolymerElements/iron-selector.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-selector)
17
_[Demo and API docs](https://elements.polymer-project.org/elements/iron-selector)_
20
##<iron-selector>
22
`iron-selector` is an element which can be used to manage a list of elements
23
that can be selected. Tapping on the item will make the item selected. The `selected` indicates
24
which item is being selected. The default is to use the index of the item.
29
<iron-selector selected="0">
36
If you want to use the attribute value of an element for `selected` instead of the index,
37
set `attrForSelected` to the name of the attribute. For example, if you want to select item by
38
`name`, set `attrForSelected` to `name`.
43
<iron-selector attr-for-selected="name" selected="foo">
44
<div name="foo">Foo</div>
45
<div name="bar">Bar</div>
46
<div name="zot">Zot</div>
50
`iron-selector` is not styled. Use the `iron-selected` CSS class to style the selected element.
63
<iron-selector selected="0">
72
<!-- No docs for Polymer.IronMultiSelectableBehavior found. -->
74
<!-- No docs for Polymer.IronSelectableBehavior found. -->