SharedEventAttrs

scalatags.generic.SharedEventAttrs
trait SharedEventAttrs[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]

Attributes

Graph
Supertypes
trait Util[Builder, Output, FragT]
trait LowPriUtil[Builder, Output, FragT]
class Object
trait Matchable
class Any
Known subtypes
trait MediaEventAttrs[Builder, Output, FragT]
trait Attrs[Builder, Output, FragT]
trait MiscellaneousEventAttrs[Builder, Output, FragT]
trait WindowEventAttrs[Builder, Output, FragT]

Members list

Type members

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

Inherited types

type ConcreteHtmlTag[T <: Output] <: TypedTag[Builder, T, FragT]

Attributes

Inherited from:
Util

Value members

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, FragT]*): Frag[Builder, FragT]

Attributes

Inherited from:
Util
def makeAbstractTypedTag[T <: Output](tag: String, void: Boolean, namespaceConfig: Namespace): ConcreteHtmlTag[T]

Attributes

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

Attributes

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

Attributes

Inherited from:
Util

Concrete fields

lazy val onerror: Attr

Script to be run when an error occurs when the file is being loaded

Script to be run when an error occurs when the file is being loaded

Attributes

Implicits

Inherited implicits

implicit def ArrayFrag[A](xs: Array[A])(implicit ev: A => Frag[Builder, 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]): 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 GeneratorFrag[A](xs: Generator[A])(implicit ev: A => Frag[Builder, 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 OptionFrag[A](xs: Option[A])(implicit ev: A => Frag[Builder, 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]): 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
implicit def SeqFrag[A](xs: Seq[A])(implicit ev: A => Frag[Builder, 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
final implicit def SeqNode[A](xs: Seq[A])(implicit ev: A => Modifier[Builder]): 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
implicit def UnitFrag(u: Unit): Frag[Builder, FragT]

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 from:
LowPriUtil