inveniosoftware / flask-menu

Flask-Menu is a Flask extension that adds support for generating menus.
https://flask-menu.readthedocs.io
Other
53 stars 45 forks source link

Delete MenuEntry #56

Open Henni opened 7 years ago

Henni commented 7 years ago

I'm trying to use flask-menu to build a menu which contains a dynamic submenu. Therefore I'm registering menu entries with MenuEntryMixin.register(). What I'm missing is a way to 'unregister' a given MenuEntryMixin, which removes the entry from the menu.

jirikuncar commented 7 years ago

@Henni you are right. Do you have any proposal for an API?

datashaman commented 6 years ago

A bit late to the party, but it seems easier to omit rendering the specific menu item in the template.