Package Exports
- angular-rightclicktrigger
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (angular-rightclicktrigger) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
angular-rightclicktrigger
Angular 2+ material menu trigger for right mouse button
Installation:
'npm install angular-rightclicktrigger'
Usage:
- Import the module
import
RightClickTriggerModule
in the NgModule of your application.
import { RightClickTriggerModule } from 'angular-rightclicktrigger';
imports[
...
RightClickTriggerModule,
...
]
- Set the trigger on the menu item of your choice
<button mat-menu-item [rightClickTrigger]="someMenu">Open sub menu</button>
<mat-menu #someMenu>
<button mat-menu-item>Test</button>
</mat-menu>
Right now it only works when you build or serve the application with --aot
ng serve --aot
or ng build --aot