net.liftmodules.FoBoTB.snippet.FoBo
This method will transform the enclosed menu builder call adding provided bootstrap attributes for declared items in lift sitemap loc locgroup.
This method will transform the enclosed menu builder call adding provided bootstrap attributes for declared items in lift sitemap loc locgroup. Example
<span data-lift="FoBo.BootstrapNav.menuToTBNav?eager_eval=true"> <span data-lift="Menu.builder?top:class=nav;li_item:class=active;linkToSelf=true;expandAll=true;group=frontNav"></span> </span>
Result: Depending on the items in and the structure of the net.liftweb.sitemap.loc.LocGroup matching the value specified by the group parameter a nodeSeq formated as a "bootstrap navigation menu" containing the declared sitemap items will be returned.
BootstrapNav v2.x Snippet
This snippet object transforms lift sitemap menu with specified loc group name into Bootsrap nav menu items including dropdown menu items. This work is originally contributed to the FoBo module by community member Damian Helme. http://tech.damianhelme.com/twitter-bootstrap-navbar-dropdowns-and-lifts. Example Invoke with
(Since version FoBo v0.7.3) For Lift >= v2.5 use the newer TB***Menu snippets
v0.7