Comments (6)
Hey @MarcBrad !
You are correct, this event was removed when the whole library API changed.
Implementing something similar shouldn't be complicated, I can probably publish it in the next few hours.
Something like an (open)="onOpen($event)"
event on the [shAttachMenu]
directive, and the ability to prevent it from opening:
onOpen(event){
if(...) event.preventOpen();
}
from ng2-right-click-menu.
@MarcBrad published v1.1.1 with the (open) event.
from ng2-right-click-menu.
Thanks for the quick response MSarcha,
This works great
from ng2-right-click-menu.
Glad to hear.
BTW I will appreciate if you could update the readme 😄
from ng2-right-click-menu.
Sure
I'll do that later today
from ng2-right-click-menu.
How is this used?
from ng2-right-click-menu.
Related Issues (20)
- (ng2-right-click-menu) which declares ShContextMenuModule is not compatible with Angular Ivy. HOT 1
- TypeError: Cannot read property 'detach' of undefined HOT 7
- use visible attribute HOT 5
- Module not found: Error: Can't resolve 'rxjs/observable/fromEvent' HOT 2
- Get the Id of element to which menu is attached HOT 1
- ngDestroy, unsubscribe on undefined
- remove deprecated ConnectedPositionStrategy from context service
- How to use with angular 4.3
- How to use with angular 4.3 HOT 4
- Menu not showing when toggling mobile device mode with chrome dev tools HOT 4
- Does not work in IE 11
- Expose close event on main menu HOT 2
- does it work with Angular 6/7? HOT 1
- If the Context Menu is already open, and you again right click, then it opens system context menu HOT 8
- Dynamically change Menu Items depending on the state the clicked element is in
- Feature: Pass data in the click() function
- Html table - when page scrolled menu opens in wrong place HOT 5
- How can I close old menu and open new one when right click? HOT 1
- Can we open context menu on left click? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng2-right-click-menu.