Gathering detailed insights and metrics for ember-right-click-menu
Gathering detailed insights and metrics for ember-right-click-menu
Gathering detailed insights and metrics for ember-right-click-menu
Gathering detailed insights and metrics for ember-right-click-menu
An easy and flexible addon to add context menus anywhere in your application
npm install ember-right-click-menu
Typescript
Module System
Min. Node Version
JavaScript (73.73%)
CSS (11.8%)
Handlebars (7.62%)
HTML (6.86%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
17 Stars
89 Commits
3 Forks
3 Watchers
18 Branches
3 Contributors
Updated on May 30, 2024
Latest Version
0.8.0
Package Id
ember-right-click-menu@0.8.0
Unpacked Size
383.53 kB
Size
220.42 kB
File Count
38
Published on
Jan 26, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
41
An easy and flexible addon to add context menus anywhere in your application
This addon is made for Ember Octane, with glimmer components
ember install ember-right-click-menu
The right click menu needs some styling, which must be included manually. Add one of the following imports to your application. If you don't want any custom styling and style the right click menu on your own, you can just import the default.
1 @import 'ember-right-click-menu'; 2 @import 'ember-right-click-menu-default'; /* without any additional styling */
If you don't want to include material icons, you can add the following lines to your styling instead
1.ember-right-click-menu { 2 display: none; 3} 4 5.ember-right-click-menu[data-show] { 6 display: block; 7}
In oder to make the context-menu work, you need to include the following line in your application. For example in the index.html or application.hbs.
1<div id="ember-right-click-menu-wormhole"></div>
Live demo: https://fabriquartz.github.io/ember-right-click-menu/
The right click menu will be applied to its parent element. Options for the right click menu are added via a simple list of objects that contain a name, an action and a property to make it disabled. You can nest options to create a multi level context menu.
1items = [ 2 { title: "Link", action: this.saveHyrule }, 3 { title: "Zelda", action: this.petEpona, disabled: true }, 4 { title: "Navi", items: [ 5 { title: "Annoy the gamer", action: this.sayHeyListen }, 6 { title: "Help Link out", action: this.sayHeyListen }, 7 { title: "Yell for attention", action: this.sayHeyListen }, 8 ]} 9] 10
1<span> 2 Element with context menu 3 <RightClickMenu @items={{this.items}} /> 4</span>
The following attributes can be used to add your items:
You can render your own template or component in the menu item by passing as shown in the example below. Add anything you like to your list of objects (as shown before) to be able to use it in your template.
1<span> 2 Element with context menu 3 <RightClickMenu @items={{this.items}} as |item|> 4 <div> 5 <PaperIcon @icon={{@item.iconName}}> 6 <label> 7 {{@item.title}} 8 </label> 9 <span class="subtitle"> 10 {{@item.subtitle}} 11 </span> 12 </div> 13 </RightClickMenu> 14</span>
See the Contributing guide for details.
This project is licensed under the MIT License.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
Found 5/15 approved changesets -- score normalized to 3
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
41 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More