ember-simple-context-menu
A Simple ember context menu component..
Installation
ember install ember-simple-context-menu
Usage
In your application.hbs
{{context-menu}}
Right Click Trigger
In your list or any template
<div class="container"> <table class="table table-hover"> <thead class="thead-light"> <tr> <th>Name</th> <th>City</th> <th>Education</th> <th>Work City</th> </tr> </thead> <tbody> {{#each model as |contact|}} {{#right-click menuActions=menuActions model=contact tagName="tr"}} <td>{{contact.name}}</td> <td>{{contact.city}}</td> <td>{{contact.education}}</td> <td>{{contact.work}}</td> {{/right-click}} {{/each}} </tbody> </table></div>
Menu Actions
In your Controller
; ;
Actions Handling
In your current route
; ;
Contributing
Installation
git clone https://github.com/rajmichaels/ember-context-menu.git
cd ember-context-menu
npm install
Linting
npm run lint:js
npm run lint:js -- --fix
Running tests
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"npm test
– Runsember try:each
to test your addon against multiple Ember versions
Running the dummy application
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
License
This project is licensed under the MIT License.