traitBs3LinkedListGroup extends FlexMenuBuilder with DispatchSnippet
Bs3LinkedListGroup Snippet Bootstrap v3.x
This snippet object transforms lift SiteMap menu items associated with a specified loc
group name's into a collection of Bootstrap list group items.
This is a simple but flexible list group item snippet that can be used when constructing list group menus.
The current implementation is flat and dose not support transformation of Lift PlaceHolder's and submenu's as for example
the BsNavbar dose nor dose it support transformations into menu headers or menu dividers as the Bootstrap v2 TBNavlist
but you can of course add your own menu section header's between loc groups in the list group as shown in the example below.
<a class="list-group-item active" href="[current active loc link url]">[Loc link text]</a>
<a class="list-group-item" href="[loc link url]">[Loc link text]</a>
:
This will be expand into a twitter bootstrap navlist's built from the named
Lift menu locGroup content.
Example - Linked list group with several linked list (loc) groups combined and enclosed in a list group div with a
application specific styled menu section header before the last group.
<d i v class="list-group">
<span data-lift="FoBo.Bs3LinkedListGroup.builder?group=lg1"></span>
<span data-lift="FoBo.Bs3LinkedListGroup.builder?group=user"></span>
<span class="list-group-item mylgheader">Example menu section header</span>
<span data-lift="FoBo.Bs3LinkedListGroup.builder?group=lg2"></span>
:
</d i v>
Result: This will create a list group of linked items associated with the specified
LocGroup names 'lg1, user, lg2, ...'.
Bs3LinkedListGroup Snippet Bootstrap v3.x
This snippet object transforms lift SiteMap menu items associated with a specified loc group name's into a collection of Bootstrap list group items.
This is a simple but flexible list group item snippet that can be used when constructing list group menus. The current implementation is flat and dose not support transformation of Lift PlaceHolder's and submenu's as for example the BsNavbar dose nor dose it support transformations into menu headers or menu dividers as the Bootstrap v2 TBNavlist but you can of course add your own menu section header's between loc groups in the list group as shown in the example below.
Snippet Usage:
<span data-lift="FoBo.Bs3LinkedListGroup.builder?group=[LocGroup name]"></span>
Snippet Params:
Result: The above will result in
This will be expand into a twitter bootstrap navlist's built from the named Lift menu locGroup content.
Example - Linked list group with several linked list (loc) groups combined and enclosed in a list group div with a application specific styled menu section header before the last group.
Result: This will create a list group of linked items associated with the specified LocGroup names 'lg1, user, lg2, ...'.
v1.1