django-menu-generator icon indicating copy to clipboard operation
django-menu-generator copied to clipboard

Feature Request: menu item decorator

Open ronflima opened this issue 4 years ago • 1 comments

Sometimes it is important to decorate a menu item with a different visual element. It is a way to indicate to the user that something need to be done through the given menu element.

For instance, a badge should be put on a menu item to indicate a necessary action to be taken by the user. But in the current implementation there is no easy way to do so. It is necessary to evaluate the menu item element in order to decorate it properly.

So, during rendering, it should be only a matter of evaluating a single menu item element in order to decide, on a template, how to decorate this menu item.

ronflima avatar Jun 22 '20 20:06 ronflima

Hello, sorry for the delayed answer, what's your idea for this? having a field with some HTML? or how would you indicate what you want to the dictionary?

MiltonLn avatar Nov 02 '20 16:11 MiltonLn