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 this:
>
> menu.append([description, False,
> URL('catalog','regimen',args=[id]),[]],_style='background-color:red;')
>
> but of course, this doesn't work this way -
>
>
>
I'd look at using _class instead of _style. (_class defaults to
'web2py-menu web2py-menu-vertical')
/dps
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/dcaea736-c629-43c7-924a-b07764ce952a%40googlegroups.com.