2.0.0 • Published 1 year ago

ember-key-navigation v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
1 year ago

ember-key-navigation

npm version Bundle Size GitHub license Build Status

A Simple EmberJS Addon that supports keyboard navigation inside the list.

Compatibility

  • Ember.js v3.24 or above
  • Ember CLI v3.24 or above
  • Node.js v12 or above

Installation

ember install ember-key-navigation

Usage

  • Ember Key Navigation component with list of results.
// template.hbs

<EmberKeyNavigation @focusInDefault={{true}} @model={{this.countries}} as |navigationWrapper|>
  {{#each this.countries as |country|}}
    <navigationWrapper.item @model={{country}} @onSelect={{action doStuff}}>
      {{country}}
    </navigationWrapper.item>
  {{/each}}    
</EmberKeyNavigation>
// *.js

countries: [
  'India', 
  'United States', 
  'United Kingdom',
   ...
]
  
doStuff(result) {
  alert(`Selected country is ${result}`);
}

Helpful Links

Live Demo

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

2.0.0

1 year ago

1.0.8

3 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago