Cap

scalatags.VirtualDom.Cap
trait Cap extends Util, TagFactory[Output, FragT]

Attributes

Graph
Supertypes
trait TagFactory[Output, FragT]
trait Util[Builder[Output, FragT], Output, FragT]
trait LowPriUtil[Builder[Output, FragT], Output, FragT]
class Object
trait Matchable
class Any
Show all
Known subtypes
object all.type
object attrs.type
object *.type
object short.type
object styles.type
object styles2.type
object svgAttrs.type
object svgTags.type
object tags.type
object tags2.type
Show all
Self type
Cap

Members list

Type members

Classlikes

implicit class GeneratorFrag[A](xs: Generator[A])(implicit ev: A => Frag) extends Frag

Attributes

Supertypes
trait Frag[Builder[Output, FragT], FragT]
trait Modifier[Builder[Output, FragT]]
class Object
trait Matchable
class Any
implicit class SeqFrag[A](xs: Seq[A])(implicit ev: A => Frag) extends Frag

Attributes

Supertypes
trait Frag[Builder[Output, FragT], FragT]
trait Modifier[Builder[Output, FragT]]
class Object
trait Matchable
class Any

Inherited classlikes

implicit class SeqNode[A](xs: Seq[A])(implicit ev: A => Modifier[Builder]) extends Modifier[Builder]

Allows you to modify a ConcreteHtmlTag by adding a Seq containing other nest-able objects to its list of children.

Allows you to modify a ConcreteHtmlTag by adding a Seq containing other nest-able objects to its list of children.

Attributes

Inherited from:
Util
Supertypes
trait Modifier[Builder]
class Object
trait Matchable
class Any

Types

type ConcreteHtmlTag[T <: Output] = TypedTag[T]

Value members

Concrete methods

def makeAbstractTypedTag[T <: Output](tag: String, void: Boolean, namespaceConfig: Namespace): TypedTag[T]

Inherited methods

def attr(s: String, ns: Namespace, raw: Boolean): Attr

Constructs an Attr attribute object from a string; can be used inline:

Constructs an Attr attribute object from a string; can be used inline:

 div(
   attr("hello-world-special-attr") := "foo
 )

Or assigned to a name and used later

 val hello = attr("hello-world-special-attr")
 div(
   hello := "foo
 )

Attributes

Inherited from:
Util
def css(s: String): Style

Constructs a CSS Style from a string, can be used inline

Constructs a CSS Style from a string, can be used inline

 div(
   css("-moz-special-style") := "foo"
 )

Or assigned to a name and used later

 val mozSpecial := css("-moz-special-style")
 div(
   mozSpecial := "foo"
 )

Attributes

Inherited from:
Util
def frag(frags: Frag[Builder[Output, FragT], FragT]*): Frag[Builder, FragT]

Attributes

Inherited from:
Util
def modifier(mods: Modifier[Builder[Output, FragT]]*): Modifier[Builder]

Attributes

Inherited from:
Util
def tag(s: String, void: Boolean): ConcreteHtmlTag[Output]

Attributes

Inherited from:
TagFactory

Implicits

Implicits

final implicit def GeneratorFrag[A](xs: Generator[A])(implicit ev: A => Frag): GeneratorFrag[A]

Renders an Seq of FragT into a single FragT

Renders an Seq of FragT into a single FragT

Attributes

final implicit def SeqFrag[A](xs: Seq[A])(implicit ev: A => Frag): SeqFrag[A]

Renders an Seq of FragT into a single FragT

Renders an Seq of FragT into a single FragT

Attributes

implicit def UnitFrag(u: Unit): StringFrag

Lets you put Unit into a scalatags tree, as a no-op.

Lets you put Unit into a scalatags tree, as a no-op.

Attributes

Inherited implicits

implicit def ArrayFrag[A](xs: Array[A])(implicit ev: A => Frag[Builder[Output, FragT], FragT]): Frag[Builder, FragT]

Renders an Seq of FragT into a single FragT

Renders an Seq of FragT into a single FragT

Attributes

Inherited from:
LowPriUtil
implicit def ArrayNode[A](xs: Array[A])(implicit ev: A => Modifier[Builder[Output, FragT]]): SeqNode[A]

Allows you to modify a ConcreteHtmlTag by adding an Array containing other nest-able objects to its list of children.

Allows you to modify a ConcreteHtmlTag by adding an Array containing other nest-able objects to its list of children.

Attributes

Inherited from:
Util
implicit def OptionFrag[A](xs: Option[A])(implicit ev: A => Frag[Builder[Output, FragT], FragT]): Frag[Builder, FragT]

Renders an Option of FragT into a single FragT

Renders an Option of FragT into a single FragT

Attributes

Inherited from:
LowPriUtil
implicit def OptionNode[A](xs: Option[A])(implicit ev: A => Modifier[Builder[Output, FragT]]): SeqNode[A]

Allows you to modify a ConcreteHtmlTag by adding an Option containing other nest-able objects to its list of children.

Allows you to modify a ConcreteHtmlTag by adding an Option containing other nest-able objects to its list of children.

Attributes

Inherited from:
Util
final implicit def SeqNode[A](xs: Seq[A])(implicit ev: A => Modifier[Builder[Output, FragT]]): SeqNode[A]

Allows you to modify a ConcreteHtmlTag by adding a Seq containing other nest-able objects to its list of children.

Allows you to modify a ConcreteHtmlTag by adding a Seq containing other nest-able objects to its list of children.

Attributes

Inherited from:
Util