Class

net.liftmodules.FoBoBs.snippet.FoBo

BS3Resources

Related Doc: package FoBo

Permalink

class BS3Resources extends StatefulSnippet

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

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

Instance Constructors

  1. new BS3Resources()

    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
    BS3Resources → 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. def injectCSS: CssSel

    Permalink

    Snippet Params:

    Snippet Params:

    • Param resources - A comma separated list of FoBo managed Bootstrap3 css resources.

    Example

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

    or making bootstrap.css implicit.

    <link data-lift="FoBo.BS3Resources.injectCSS?resources=bootstrap-theme"></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-theme.css" rel="stylesheet" type="text/css" />
    Since

    v1.3

  14. def injectJS: CssSel

    Permalink

    Snippet Params:

    Snippet Params:

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

    Example

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

    or making bootstrap.js implicit.

    <script data-lift="FoBo.BS3Resources.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

  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. def names: Set[String]

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

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

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

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

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

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

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

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

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

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

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

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

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

Inherited from StatefulSnippet

Inherited from DispatchSnippet

Inherited from AnyRef

Inherited from Any

Ungrouped