Class

net.liftmodules.FoBoBs.snippet.FoBo

Bs3ScriptHelper

Related Doc: package FoBo

Permalink

class Bs3ScriptHelper extends StatefulSnippet with Loggable

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

Linear Supertypes
Loggable, StatefulSnippet, DispatchSnippet, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Bs3ScriptHelper
  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 Bs3ScriptHelper()

    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 addName(name: String): Unit

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

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

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

    Permalink
    Definition Classes
    Bs3ScriptHelper → DispatchSnippet
  8. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

    Permalink
    Definition Classes
    StatefulSnippet
  15. val logger: Logger

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. def redirectTo(where: String): Nothing

    Permalink
    Definition Classes
    StatefulSnippet
  21. def registerLoadEventFactory: CssSel

    Permalink

    This function register a load event factory script

    This function register a load event factory script

    Example

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

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

    Result: This example snippet invocation will result in the following script:

    <script type="text/javascript">// drop down activation that uses the load factory 
    <script type="text/javascript">
      // 
        function addLoadEvent(func) {
               var oldonload = window.onload;
               if (typeof window.onload != 'function') {
                  window.onload = func;
               } else {
                  window.onload = function() {
                     if (oldonload) {
                        oldonload();
                     }
                     func();
    
                  }
               }
            }
      // ]]>
    </script>
  22. def registerLoadEventFactoryAppendGlobalJs: CssSel

    Permalink

    Lift 3 alternativ -- This function creates a register load event factory function and appends it to lift's page-script global space.

    Lift 3 alternativ -- This function creates a register load event factory function and appends it to lift's page-script global space.

    Since

    v1.4

  23. def registerThisSnippet(): Unit

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  27. def unregisterThisSnippet(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. 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