trait HtmlHelpers extends CssBindImplicits
- Alphabetic
- By Inheritance
- HtmlHelpers
- CssBindImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
CssBindPromoter
extends AnyRef
- Definition Classes
- CssBindImplicits
-
implicit
class
CssSelectorToCssBindPromoter
extends CssBindPromoter
- Definition Classes
- CssBindImplicits
-
implicit
class
StringToCssBindPromoter
extends CssBindPromoter
- Definition Classes
- CssBindImplicits
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addCssClass(cssClass: String, elem: Elem): Elem
Adds the specified
cssClass
to the existing class attribute of an Elem or creates the class attribute with that class if it does not exist. -
def
addCssClass(cssClass: Box[String], elem: Elem): Elem
Adds the specified
cssClass
to the existing class attribute of an Elem or create the class attribute with that class if it does not exist.Adds the specified
cssClass
to the existing class attribute of an Elem or create the class attribute with that class if it does not exist.If
cssClass
is notFull
, returns the passed Elem unchanged. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
deepEnsureUniqueId(in: NodeSeq): NodeSeq
For a list of NodeSeq, ensure that the the id of all Elems are unique, recursively.
For a list of NodeSeq, ensure that the the id of all Elems are unique, recursively. If there's a duplicate, that Elem will be returned without an id.
-
def
ensureId(ns: NodeSeq, id: String): NodeSeq
Ensure that the first Element has the specified ID
-
def
ensureUniqueId(in: Seq[NodeSeq]): Seq[NodeSeq]
For a list of NodeSeq, ensure that the the id of the root Elems are unique.
For a list of NodeSeq, ensure that the the id of the root Elems are unique. If there's a duplicate, that Elem will be returned without an id
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def errorDiv(body: NodeSeq): Box[NodeSeq]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
findBox[T](nodes: Seq[Node])(f: (Elem) ⇒ Box[T]): Box[T]
Given a NodeSeq and a function that returns a Box[T], return the first value found in which the function evaluates to Full
-
def
findId(ns: NodeSeq): Box[String]
Finds the first
Elem
in the NodeSeq (or any children) that has an ID attribute and return the value of that attribute. -
def
findId(nodes: Seq[Node], id: String): Option[Elem]
Given an id value, find the Elem with the specified id
-
def
findOption[T](nodes: Seq[Node])(f: (Elem) ⇒ Option[T]): Option[T]
Given a NodeSeq and a function that returns an Option[T], return the first value found in which the function evaluates to Some
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
makeMetaData(key: String, value: String, rest: MetaData): MetaData
Make a MetaData instance from a key and a value.
Make a MetaData instance from a key and a value. If key contains a colon, this method will generate a PrefixedAttribute with the text before the colon used as the prefix. Otherwise, it will produce an UnprefixedAttribute.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
pairsToMetaData(in: List[String]): MetaData
Convert a list of strings into a MetaData of attributes.
Convert a list of strings into a MetaData of attributes.
The strings in the list must be in the format of key=value.
-
def
removeAttribute(name: String, existingAttributes: MetaData): MetaData
Remove an attribute from the specified list of existing attributes.
Remove an attribute from the specified list of existing attributes.
- name
the name of the attribute to remove
- existingAttributes
a list of existing attributes
- returns
the attributes list sans the named attribute
-
def
removeAttribute(name: String, element: Elem): Elem
Remove an attribute from the specified element.
Remove an attribute from the specified element.
- name
the name of the attribute to remove
- returns
the element sans the named attribute
-
def
stripHead(in: NodeSeq): NodeSeq
Remove all the <head> elements, just leaving their child elements.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )