atom / atom-select-list

An etch component to show select lists with fuzzy filtering, keyboard navigation and other cool features.
MIT License
33 stars 33 forks source link

Pass options along with item: `selected` and `index` #14

Closed wbinnssmith closed 7 years ago

wbinnssmith commented 7 years ago

This passes the item's index as well as its selected state to elementForItem callback to help construct meaningful elements.

For example, passing the selected state can conditionally show contents without the need for a css selector on the parent element's selected class.