Package

net.liftmodules.FoBoBs.snippet

FoBo

Permalink

package FoBo

Visibility
  1. Public
  2. All

Type Members

  1. class BS3Resources extends StatefulSnippet

    Permalink

    This snippet class lets you inject FoBo Bootstrap3 resources into your templates.

    BS3Resources Snippet

    This snippet class lets you inject FoBo Bootstrap3 resources into your templates. Instead of hand write the resource tags you can use this helper snippet to inject it for you.

    Example Invoke with

    data-lift="FoBo.BS3Resources.functionName?paramName=paramValue&...."

    For more examples see the individual transform functions.

    Since

    v1.3

  2. class Bs3Comp extends StatefulSnippet with Loggable

    Permalink

    This snippet class contains a collection of functions for common transform operations useful when working with the Bootstrap toolkit components.

    Bs3Component's Snippet Bootstrap v3.x

    This snippet class contains a collection of functions for common transform operations useful when working with the Bootstrap toolkit components. Example Invoke with

    data-lift="FoBo.Bs3Comp.functionName?paramName=paramValue&...."

    For more examples see the individual transform functions.

    Since

    v1.1

  3. trait Bs3LinkedListGroup extends FlexMenuBuilder with DispatchSnippet

    Permalink

    This snippet object transforms lift SiteMap menu items associated with a specified loc group name's into a collection of Bootstrap list group items.

    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:

    • Param group - The LocGroup name

    Result: The above will result in

    <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, ...'.

    Since

    v1.1

  4. trait Bs3NavLiList extends FlexMenuBuilder with DispatchSnippet

    Permalink

    This snippet object transforms lift SiteMap menu items associated with a specified loc group name's into a collection of list items.

    Bs3NavLiList Snippet Bootstrap v3.x

    This snippet object transforms lift SiteMap menu items associated with a specified loc group name's into a collection of list items.

    This is a simple but flexible list item snippet that can be used when constructing li list menus. In addition to normal menu loc items the TBNavLiList dose also support menu headers and dividers from SiteMap entries, see TBLocInfo the object in net.liftmodules.FoBo for various, simple to use, SiteMap manipulation functions.

    Snippet Usage:

    <span data-lift="FoBo.Bs3NavLiList.builder?group=[LocGroup name]"></span>

    Snippet Params:

    • Param group - The LocGroup name

    Result: The above will result in

    < l i class="active"><a href="[current active loc link url]" class="">[Loc link text]</a></l i >
    < l i class=""><a href="[loc link url]" class="">[Loc link text]</a></l i >
     :

    This will be expand into a list's built from the named Lift menu locGroup content.

    Example - A nav menu with one (loc) group

    < u l class="nav " >
         <span data-lift="FoBo.Bs3NavLiList.builder?group=nav1"></span>
        :
    </u l >

    Result: This will create a list of linked items associated with the specified LocGroup name 'nav1'.

    Since

    v1.2

  5. trait Bs3Navbar extends FlexMenuBuilder with DispatchSnippet

    Permalink

    This snippet object transforms lift SiteMap menu items associated with specified loc group name's into Twitter Bootsrap Nav menu items including dropdown menu items from SiteMap submenu's.

    Bs3Navbar Snippet Bootstrap v3.x

    This snippet object transforms lift SiteMap menu items associated with specified loc group name's into Twitter Bootsrap Nav menu items including dropdown menu items from SiteMap submenu's.

    See also the TBLocInfo object in net.liftmodules.FoBo for various, simple to use, SiteMap manipulation functions (menu dividers, labels...). If you are using the FoBoBs module separately from FoBo see the BsLocInfo object in net.liftmodules.FoBoBs

    Snippet Usage:

    <span data-lift="FoBo.Bs3Navbar.builder?group=[LocGroup name]"></span>

    and/or

    <span data-lift="FoBo.Bs3Navbar.builderPullRight?group=[LocGroup name]"></span>

    Snippet Params:

    • Param group - The LocGroup name

    Result: The above will result in

    <u l class="nav">...lift SiteMap items associated with the locGroup name...</u l>
    <u l class="nav pull-right">...lift SiteMap items associated with the locGroup name...</u l>

    This will be expand into twitter bootstrap nav list's built from the named Lift menu locGroup content where the second list will be pull to the right.

    Example - Fluid Navbar fixed to top Invoke with something like this

    <d i v class="navbar navbar-fixed-top">
      <d i v class="navbar-inner">
       <d i v class="container-fluid">
         <a class="btn btn-navbar" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
         </a> <a class="brand" href="...">Project</a>
         <d i v class="navbar-collapse">
            <span data-lift="FoBo.Bs3Navbar.builder?group=top"></span>
            <span data-lift="FoBo.Bs3Navbar.builderPullRight?group=top2"></span>
         </d i v>
       </d i v>
      </d i v>
    </d i v>

    Result: This will create a fluid bootstrap navbar fixed to top with menu entries associated with the two LocGroup's 'top' and 'top2' where the second one is pulled to the right.

    Since

    v1.1

  6. class Bs3ScriptHelper extends StatefulSnippet with Loggable

    Permalink

    This snippet class contains functions for common transform operations useful when working with the any toolkit, for convenience included as a Bootstrap v3.x snippet.

    Script Helper Snippet Bootstrap v3.x

    This snippet class contains functions for common transform operations useful when working with the any toolkit, for convenience included as a Bootstrap v3.x snippet. Example Most of the functions in this class can be invoked using the following pattern.

    data-lift="FoBo.Bs3ScriptHelper.functionName?paramName=paramValue&...."

    For more examples see the individual transform functions.

    Since

    v1.1

Value Members

  1. object Bs3LinkedListGroup extends Bs3LinkedListGroup

    Permalink
  2. object Bs3NavLiList extends Bs3NavLiList

    Permalink
  3. object Bs3Navbar extends Bs3Navbar

    Permalink

Ungrouped