Templarian / ui.bootstrap.contextMenu

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

Add hide menu option #76

Closed alexander2209 closed 8 years ago

alexander2209 commented 8 years ago

I know we can disable menu options, but they still show up and look exactly the same but I am unable to click. I would LOVE it if you could actually prevent these menu items from showing at all. Like an ng-hide or something.

Templarian commented 8 years ago

This was considered and may still be added for now look at the last code block in menu options. You can use a function for menu options and push to an array each menu item and return it.

https://github.com/Templarian/ui.bootstrap.contextMenu#menu-options

josetaira commented 8 years ago

I've also added the feature before so that function can also return a promise, which can resolve to an array containing exactly what you want it to display.