net.liftmodules.FoBoTB.snippet.FoBo

TBResources

class TBResources extends StatefulSnippet

TBResources Snippet

This snippet class lets you inject FoBo Bootstrap 2.x 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.TBResources.functionName?paramName=paramValue&...."

For more examples see the individual transform functions.

Since

v1.3

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

Instance Constructors

  1. new TBResources()

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

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

    Definition Classes
    Any
  8. def clone(): AnyRef

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

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  15. def injectCSS: CssSel

    Snippet Params:

    Snippet Params:

    • Param resources - A comma separated list of FoBo managed Bootstrap 2.x css resources.

    Example

    <link data-lift="FoBo.TBResources.injectCSS?resources=bootstrap,bootstrap-theme"></link>

    or making bootstrap.css and bootstrap-responsive.css implicit.

    <link data-lift="FoBo.TBResources.injectCSS"></link>

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

    <link href="/classpath/fobo/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="/classpath/fobo/bootstrap-responsive.css" rel="stylesheet" type="text/css" />
    Since

    v1.3

  16. def injectJS: CssSel

    Snippet Params:

    Snippet Params:

    • Param resources - A comma separated list of FoBo managed Bootstrap 2.x js resources.

    Example

    <script data-lift="FoBo.TBResources.injectJS?resources=bootstrap"></script>

    or making bootstrap.js implicit.

    <script data-lift="FoBo.TBResources.injectJS"></script>

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

    <script src="/classpath/fobo/bootstrap.js" type="text/javascript"></script>
    Since

    v1.3

  17. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    StatefulSnippet
  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 redirectTo(where: String): Nothing

    Definition Classes
    StatefulSnippet
  24. def registerThisSnippet(): Unit

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

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

    Definition Classes
    AnyRef
  27. def toString(): String

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from StatefulSnippet

Inherited from DispatchSnippet

Inherited from AnyRef

Inherited from Any

Ungrouped