if adding the icon to the text of the menu would not work, you can still 
serialize in output your own menu.
Normal web2py syntax allows some degree of customization, but if you want 
your own you can serialize your structure using the standard templating 
language.

Il giorno lunedì 30 luglio 2012 13:39:38 UTC+2, Alec Taylor ha scritto:
>
> Some websites using Twitter-Bootstrap use the in-built icons (or custom 
> ones) to decorate their navbar options.
>
> E.g.: http://angularjs.org
>
> How do I add icons to my navbar?
>
> response.menu = [
>     (T('Groups'), False, URL('', 'groups', ' '), []), # want icon-road
>     (T('Events'), False, URL('', 'events', ' '), [])  # want icon-time]
>
>
> Thanks for all suggestions,
>
> Alec Taylor
>

-- 



Reply via email to