Re: [web2py] Re: customizing menu items when MENU helper is used

2019-07-31 Thread Dave S
On Wednesday, July 31, 2019 at 5:13:31 AM UTC-7, Vlad wrote: > > It's not really about a menu as a whole (that would be easy). It's about > dynamically changing the background color for each menu item individually. > In this context I can't pass neither style nor class (in contrast with, for

Re: [web2py] Re: customizing menu items when MENU helper is used

2019-07-31 Thread Eliezer (Vlad) Tseytkin
It's not really about a menu as a whole (that would be easy). It's about dynamically changing the background color for each menu item individually. In this context I can't pass neither style nor class (in contrast with, for example a list helper where elements/options are made up of another helper

[web2py] Re: customizing menu items when MENU helper is used

2019-07-31 Thread Dave S
On Tuesday, July 30, 2019 at 3:09:24 PM UTC-7, Vlad wrote: > > what would be the best way to specify a background color (different for > each menu item, depending on some database-driven data) when I build the > menu with menu.append(...) in menu.py? > > I would love to have something like