ui.bootstrap.contextMenu icon indicating copy to clipboard operation
ui.bootstrap.contextMenu copied to clipboard

Add ignoreForClass attribute that aborts contextmenu if applied

Open felixruponen opened this issue 8 years ago • 1 comments

  • If the element has the ignoreForClass the context menu won't be shown

This adds ability to dynamically disable contextMenu

Example:

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

felixruponen avatar Feb 14 '17 12:02 felixruponen

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.

josetaira avatar Feb 16 '17 02:02 josetaira