angular-rightclicktrigger

Angular 2+ material menu trigger for right mouse button

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
01Nov 17, 2017Nov 17, 2017Minified + gzip package size for angular-rightclicktrigger in KB

Readme

angular-rightclicktrigger

Angular 2+ material menu trigger for right mouse button

Installation:

'npm install angular-rightclicktrigger'

Usage:

  1. Import the module import RightClickTriggerModule in the NgModule of your application.
   import { RightClickTriggerModule } from 'angular-rightclicktrigger';
   imports[
       ...
       RightClickTriggerModule,
       ...
       ]
  1. Set the trigger on the menu item of your choice ``` <button mat-menu-item [rightClickTrigger]="someMenu">Open sub menu

<mat-menu #someMenu> Test

Right now it only works when you build or serve the application with --aot
`ng serve --aot` or `ng build --aot`

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.