Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-key-navigation

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-key-navigation

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

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

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}`);
}

Live Demo

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 18 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc