Class

net.liftmodules.FoBoBs.snippet.FoBo

Bs3Comp

Related Doc: package FoBo

Permalink

class Bs3Comp extends StatefulSnippet with Loggable

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

Linear Supertypes
Loggable, StatefulSnippet, DispatchSnippet, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Bs3Comp
  2. Loggable
  3. StatefulSnippet
  4. DispatchSnippet
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Bs3Comp()

    Permalink

Type Members

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

    Permalink
    Definition Classes
    DispatchSnippet

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def activateDropdown: CssSel

    Permalink

    This function loads the dropdown activation

    This function loads the dropdown activation

    Note

    If you are using Lift 3 you should use the AppendJs alternative. Snippet Param: - Param on - The element id or class to activate dropdown on Example

    <head>
      :
      <script data-lift="FoBo.Bs3Comp.activateDropdown?on=.dropdown-toggle"></script>
      <script data-lift="FoBo.Bs3ScriptHelper.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 ...
  5. def activateDropdownAppendJs: CssSel

    Permalink

    Lift 3 alternativ -- This function loads the dropdown activation

    Lift 3 alternativ -- 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.Bs3Comp.activateDropdownAppendJs?on=.dropdown-toggle"></script>
      <script data-lift="FoBo.ScriptHelper.registerLoadEventFactoryAppendGlobalJs"></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 appended to lift's page-script document ready function:

    addLoadEvent(function() { $('.dropdown-toggle').dropdown(); });;
    Since

    v1.4

  6. def addName(name: String): Unit

    Permalink
    Definition Classes
    StatefulSnippet
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

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

    Permalink
    Definition Classes
    Bs3Comp → DispatchSnippet
  10. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

    Permalink
    Definition Classes
    StatefulSnippet
  17. val logger: Logger

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

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

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def popover: CssSel

    Permalink

    This function sets a popover action on a element by inlining a script snippet on the page.

    This function sets a popover action on a element by inlining a script snippet on the page.

    Snippet Params:

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

    Example

    <script data-lift="FoBo.Bs3Comp.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>
  23. def popoverAppendJs: CssSel

    Permalink

    Lift 3 alternativ -- This function sets a popover action on a element by appending a script snippet to lift's page-script on page load function.

    Lift 3 alternativ -- This function sets a popover action on a element by appending a script snippet to lift's page-script on page load function.

    Snippet Params:

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

    Example

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

    Result: This example will result in the following being appended to lift's page-script on page load function:

    $(function () { $('#theId').popover({placement:'left'}); }); ;
    Since

    v1.4

  24. def popoverPreventDefault: CssSel

    Permalink

    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.Bs3Comp.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 popoverPreventDefaultAppendJs: CssSel

    Permalink

    Lift 3 alternativ -- This function prevents the default action on a popover element.

    Lift 3 alternativ -- 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.Bs3Comp.popoverPreventDefault?on=#theId"></script>

    Result: This example will result in the following being appended to lift's page-script document ready function:

    $(function(){$('#theId').popover().click(function(e){e.preventDefault()});});;
    Since

    v1.4

  26. def redirectTo(where: String): Nothing

    Permalink
    Definition Classes
    StatefulSnippet
  27. def registerThisSnippet(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def tooltip: CssSel

    Permalink

    This function inlines a tooltip action on a element in place of the snippet invocation.

    This function inlines a tooltip action on a element in place of the snippet invocation.

    Note

    If you are using Lift 3 you should use the AppendJs alternative. 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.Bs3Comp.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>
    See also

    net.liftmodules.FoBoBs.lib.BootstrapSH.tooltipScript

  32. def tooltipAppendJs: CssSel

    Permalink

    Lift 3 alternativ -- This function sets a tooltip action on a element by appending to lift's page-script on page load function.

    Lift 3 alternativ -- This function sets a tooltip action on a element by appending to lift's page-script on page load function.

    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.Bs3Comp.tooltip?id=#aId&options=placement:'bottom'"></script>

    Result: The script tag with the snippet invocation will result in the following being injected in the lift page script :

    $(function () { $('#aId').tooltip({placement:'bottom'}); });
    Since

    v1.4

  33. def unregisterThisSnippet(): Unit

    Permalink
    Definition Classes
    StatefulSnippet
  34. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Loggable

Inherited from StatefulSnippet

Inherited from DispatchSnippet

Inherited from AnyRef

Inherited from Any

Ungrouped