I am going to change this. This was new in version 1.62 and not really
well thought. In trunk now you can do
{{=MENU(response.menu,_class='web2py-menu web2py-menu-horizontal'}}
and this more in line with the syntax of other helpers. The syntax in
the previous example is gone.
massimo
On May 19, 4:55 pm, Tim Michelsen <[email protected]> wrote:
> > {{menu=MENU(response.menu)}}
> > {{menu.ul_class_0 = 'web2py-menu web2py-menu-horizonal'}}
> > {{=menu}}
>
> Thanks.
> I though I had to define the class in the controller.
> This is really cool.
> Thanks for that.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---