net.liftmodules.FoBoTB.snippet.FoBo

Bootstrap

class Bootstrap extends StatefulSnippet with Loggable

Bootstrap v2.x Snippet

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

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

For more examples see the individual transform functions.

Since

v1.0

Linear Supertypes
Loggable, StatefulSnippet, DispatchSnippet, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Bootstrap
  2. Loggable
  3. StatefulSnippet
  4. DispatchSnippet
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Bootstrap()

Type Members

  1. type DispatchIt = PartialFunction[String, (NodeSeq) ⇒ NodeSeq]

    Definition Classes
    DispatchSnippet

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def activateDropdown: CssSel

    This function loads the dropdown activation

    This function loads the dropdown activation

    Snippet Param:

    - Param on - The element id or class to activate dropdown on

    Example

    <head>
      :
      <script data-lift="FoBo.Bootstrap.activateDropdown?on=.dropdown-toggle"></script>
      <script data-lift="FoBo.ScriptHelper.registerLoadEventFactory"></script>
    </head>

    The load event factory has to be registered ones before any activation can be loaded.

    Result: This example will result in the following being injected in place of the snippet invocation:

    <script type="text/javascript">
      // 
        addLoadEvent(function() { $('.dropdown-toggle').dropdown(); });;
      // ]]>
    </script>
    <script type="text/javascript">//registerLoadEventFactory script ...
  7. def addName(name: String): Unit

    Definition Classes
    StatefulSnippet
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def dispatch: PartialFunction[String, (NodeSeq) ⇒ NodeSeq]

    Definition Classes
    Bootstrap → DispatchSnippet
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def link(to: String, func: () ⇒ Any, body: NodeSeq, attrs: liftweb.http.SHtml.ElemAttr*): Elem

    Definition Classes
    StatefulSnippet
  18. val logger: Logger

    Attributes
    protected
    Definition Classes
    Loggable
  19. def names: Set[String]

    Definition Classes
    StatefulSnippet
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. def popover: CssSel

    This function sets a popover action on a element.

    This function sets a popover action on a element.

    Snippet Params:

    • Param id - The element id
    • Param options - The option string see bootstrap documentation for available options.

    Example

    <script data-lift="FoBo.Bootstrap.popover?id=#theId&options=placement:'left'"></script>

    Result: This example will result in the following being injected in place of the snippet invocation:

    <script type="text/javascript">
      // 
        $(function () { $('#theId').popover({placement:'left'}); }); ;
      // ]]>
    </script>
  24. def popoverPreventDefault: CssSel

    This function prevents the default action on a popover element.

    This function prevents the default action on a popover element.

    Snippet Params:

    • Param on - The element id or something more general like the default value a[rel=popover]

    Example

    <script data-lift="FoBo.Bootstrap.popoverPreventDefault?on=#theId"></script>

    Result: This example will result in the following being injected in place of the snippet invocation:

    <script type="text/javascript">
      // 
        $(function(){$('#theId').popover().click(function(e){e.preventDefault()});});;
      // ]]>
    </script>
  25. def redirectTo(where: String): Nothing

    Definition Classes
    StatefulSnippet
  26. def registerThisSnippet(): Unit

    Definition Classes
    StatefulSnippet
  27. def seeOther(where: String): Nothing

    Definition Classes
    StatefulSnippet
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. def toString(): String

    Definition Classes
    AnyRef → Any
  30. def tooltip: CssSel

    This function sets a tooltip action on a element.

    This function sets a tooltip action on a element.

    Snippet Params:

    • Param id - The element id
    • Param options - The option string see bootstrap documentation for available options.

    Example Showing a example element using the tooltip and the actual snippet invocation

    <a id="aId"
       title="The most powerful, most secure web framework available today. It simply rocks!"
       href="http://liftweb.net/">Lift</a>
    <script data-lift="FoBo.Bootstrap.tooltip?id=#aId&options=placement:'bottom'"></script>

    Result: The script tag with the snippet invocation will result in the following being injected in place of the snippet invocation:

    <script type="text/javascript">
      // 
        $(function () { $('#aId').tooltip({placement:'bottom'}); }); ;
      // ]]>
    </script>
  31. def unregisterThisSnippet(): Unit

    Definition Classes
    StatefulSnippet
  32. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  33. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  34. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Loggable

Inherited from StatefulSnippet

Inherited from DispatchSnippet

Inherited from AnyRef

Inherited from Any

Ungrouped