Templarian / ui.bootstrap.contextMenu

AngularJS Bootstrap UI Context Menu
MIT License
259 stars 127 forks source link

Add ignoreForClass attribute that aborts contextmenu if applied #101

Open felixruponen opened 7 years ago

felixruponen commented 7 years ago

This adds ability to dynamically disable contextMenu

Example:

If the div has "some-class" the context-menu won't show.

josetaira commented 7 years ago

I'm not sure using a class to disable this is the way to go. The more appropriate way to do so appears to just set a flag through an attribute like context-menu-enabled. Then this flagged is set by the controller based on some parameters, in this case the class.

@Templarian not sure if this is something we should merge in.