I opened issue 1200 and attached a possible (quick and dirty) patch.
http://code.google.com/p/web2py/issues/detail?id=1200
On Sunday, December 2, 2012 2:47:40 PM UTC+1, Massimo Di Pierro wrote:
>
> You have to use jquery. I would take a MANU patch to deal with this case.
>
> On Sunday, 2 December 2012 04:18:51 UTC-6, Calycé wrote:
>>
>> Hi all,
>>
>> I'm rendering a menu with the following line of code:
>>
>> <nav>
>> <div id="menu-icon">Menu</div>
>> {{=MENU <https://cgc.yedia.com/examples/global/vars/MENU>(response
>> <https://cgc.yedia.com/examples/global/vars/response>.menu, _class='menu
>> responsive-menu', ul_class=None, li_class=None, li_active='current')}}
>> </nav>
>>
>>
>> It's working well except that I would like to set a different li_class
>> for the last item of a menu.
>> Is there a way to do that with the helper or do I have to use a different
>> approach (jQuery?).
>>
>> Thanks for your help.
>>
>>
>>
--