0.2.0 • Published 3 years ago

ember-list-keyboard-navigator v0.2.0

Weekly downloads
12
License
MIT
Repository
github
Last release
3 years ago

ember-list-keyboard-navigator

Build Status

A component for handling keyboard navigation of a list of items

Installation

ember install ember-list-keyboard-navigator

Usage

Example:
{{#list-keyboard-navigator
    itemSelector=".item"
    items=list as |highlightedItem|}}
  {{#each list as |item|}}
    <li class="item {{if (eq item.index highlightedItem.index) "highlighted"}}">
      {{item.label}}
    </li>
  {{/each}}
{{#list-keyboard-navigator}}

License

This project is licensed under the MIT License.