tags2

scalatags.VirtualDom.tags2
object tags2 extends Cap, Tags2[Output, FragT]

Attributes

Graph
Supertypes
trait Tags2[Output, FragT]
trait Tags2[Builder[Output, FragT], Output, FragT]
trait Cap
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
Self type
tags2.type

Members list

Type members

Inherited classlikes

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

Attributes

Inherited from:
Cap
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

Inherited from:
Cap
Supertypes
trait Frag[Builder[Output, FragT], FragT]
trait Modifier[Builder[Output, FragT]]
class Object
trait Matchable
class Any
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[T]

Attributes

Inherited from:
Cap

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

Attributes

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

Attributes

Inherited from:
Cap
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

Inherited fields

lazy val `var`: TypedTag[Builder[Output, FragT], Output, FragT]

Represents a variable.

Represents a variable.

MDN

Attributes

Inherited from:
Tags2
lazy val abbr: TypedTag[Builder[Output, FragT], Output, FragT]

An abbreviation or acronym; the expansion of the abbreviation can be represented in the title attribute.

An abbreviation or acronym; the expansion of the abbreviation can be represented in the title attribute.

MDN

Attributes

Inherited from:
Tags2
lazy val address: TypedTag[Builder[Output, FragT], Output, FragT]

Defines a section containing contact information.

Defines a section containing contact information.

MDN

Attributes

Inherited from:
Tags2
lazy val article: TypedTag[Builder[Output, FragT], Output, FragT]

Defines self-contained content that could exist independently of the rest of the content.

Defines self-contained content that could exist independently of the rest of the content.

MDN

Attributes

Inherited from:
Tags2
lazy val aside: TypedTag[Builder[Output, FragT], Output, FragT]

Defines some content loosely related to the page content. If it is removed, the remaining content still makes sense.

Defines some content loosely related to the page content. If it is removed, the remaining content still makes sense.

MDN

Attributes

Inherited from:
Tags2
lazy val bdi: TypedTag[Builder[Output, FragT], Output, FragT]

Represents text that must be isolated from its surrounding for bidirectional text formatting. It allows embedding a span of text with a different, or unknown, directionality.

Represents text that must be isolated from its surrounding for bidirectional text formatting. It allows embedding a span of text with a different, or unknown, directionality.

MDN

Attributes

Inherited from:
Tags2
lazy val bdo: TypedTag[Builder[Output, FragT], Output, FragT]

Represents the directionality of its children, in order to explicitly override the Unicode bidirectional algorithm.

Represents the directionality of its children, in order to explicitly override the Unicode bidirectional algorithm.

MDN

Attributes

Inherited from:
Tags2
lazy val command: TypedTag[Builder[Output, FragT], Output, FragT]

A command that the user can invoke.

A command that the user can invoke.

MDN

Attributes

Inherited from:
Tags2
lazy val data: TypedTag[Builder[Output, FragT], Output, FragT]

Associates to its content a machine-readable equivalent.

Associates to its content a machine-readable equivalent.

MDN

Attributes

Inherited from:
Tags2
lazy val details: TypedTag[Builder[Output, FragT], Output, FragT]

A widget from which the user can obtain additional information or controls.

A widget from which the user can obtain additional information or controls.

MDN

Attributes

Inherited from:
Tags2
lazy val dfn: TypedTag[Builder[Output, FragT], Output, FragT]

Represents a term whose definition is contained in its nearest ancestor content.

Represents a term whose definition is contained in its nearest ancestor content.

MDN

Attributes

Inherited from:
Tags2
lazy val kbd: TypedTag[Builder[Output, FragT], Output, FragT]

Represents user input, often from a keyboard, but not necessarily.

Represents user input, often from a keyboard, but not necessarily.

MDN

Attributes

Inherited from:
Tags2
lazy val keygen: TypedTag[Builder[Output, FragT], Output, FragT]

A key-pair generator control.

A key-pair generator control.

MDN

Attributes

Inherited from:
Tags2
lazy val main: TypedTag[Builder[Output, FragT], Output, FragT]

Defines the main or important content in the document. There is only one main element in the document.

Defines the main or important content in the document. There is only one main element in the document.

MDN

Attributes

Inherited from:
Tags2
lazy val mark: TypedTag[Builder[Output, FragT], Output, FragT]

Represents text highlighted for reference purposes, that is for its relevance in another context.

Represents text highlighted for reference purposes, that is for its relevance in another context.

MDN

Attributes

Inherited from:
Tags2
lazy val math: TypedTag[Builder[Output, FragT], Output, FragT]

Defines a mathematical formula.

Defines a mathematical formula.

MDN

Attributes

Inherited from:
Tags2
lazy val meter: TypedTag[Builder[Output, FragT], Output, FragT]

A scalar measurement within a known range.

A scalar measurement within a known range.

MDN

Attributes

Inherited from:
Tags2
lazy val noscript: TypedTag[Builder[Output, FragT], Output, FragT]

Defines alternative content to display when the browser doesn't support scripting.

Defines alternative content to display when the browser doesn't support scripting.

MDN

Attributes

Inherited from:
Tags2
lazy val output: TypedTag[Builder[Output, FragT], Output, FragT]

The result of a calculation

The result of a calculation

MDN

Attributes

Inherited from:
Tags2
lazy val progress: TypedTag[Builder[Output, FragT], Output, FragT]

A progress completion bar

A progress completion bar

MDN

Attributes

Inherited from:
Tags2
lazy val q: TypedTag[Builder[Output, FragT], Output, FragT]

An inline quotation.

An inline quotation.

MDN

Attributes

Inherited from:
Tags2
lazy val rp: TypedTag[Builder[Output, FragT], Output, FragT]

Represents parenthesis around a ruby annotation, used to display the annotation in an alternate way by browsers not supporting the standard display for annotations.

Represents parenthesis around a ruby annotation, used to display the annotation in an alternate way by browsers not supporting the standard display for annotations.

MDN

Attributes

Inherited from:
Tags2
lazy val rt: TypedTag[Builder[Output, FragT], Output, FragT]

Represents the text of a ruby annotation.

Represents the text of a ruby annotation.

MDN

Attributes

Inherited from:
Tags2
lazy val ruby: TypedTag[Builder[Output, FragT], Output, FragT]

Represents content to be marked with ruby annotations, short runs of text presented alongside the text. This is often used in conjunction with East Asian language where the annotations act as a guide for pronunciation, like the Japanese furigana .

Represents content to be marked with ruby annotations, short runs of text presented alongside the text. This is often used in conjunction with East Asian language where the annotations act as a guide for pronunciation, like the Japanese furigana .

MDN

Attributes

Inherited from:
Tags2
lazy val samp: TypedTag[Builder[Output, FragT], Output, FragT]

Represents the output of a program or a computer.

Represents the output of a program or a computer.

MDN

Attributes

Inherited from:
Tags2
lazy val section: TypedTag[Builder[Output, FragT], Output, FragT]

Represents a generic section of a document, i.e., a thematic grouping of content, typically with a heading.

Represents a generic section of a document, i.e., a thematic grouping of content, typically with a heading.

MDN

Attributes

Inherited from:
Tags2
lazy val style: TypedTag[Builder[Output, FragT], Output, FragT]

Used to write inline CSS.

Used to write inline CSS.

MDN

Attributes

Inherited from:
Tags2
lazy val summary: TypedTag[Builder[Output, FragT], Output, FragT]

A summary, caption, or legend for a given details.

A summary, caption, or legend for a given details.

MDN

Attributes

Inherited from:
Tags2
lazy val time: TypedTag[Builder[Output, FragT], Output, FragT]

Represents a date and time value; the machine-readable equivalent can be represented in the datetime attribetu

Represents a date and time value; the machine-readable equivalent can be represented in the datetime attribetu

MDN

Attributes

Inherited from:
Tags2
lazy val title: TypedTag[Builder[Output, FragT], Output, FragT]

Defines the title of the document, shown in a browser's title bar or on the page's tab. It can only contain text and any contained tags are not interpreted.

Defines the title of the document, shown in a browser's title bar or on the page's tab. It can only contain text and any contained tags are not interpreted.

MDN

Attributes

Inherited from:
Tags2

Implicits

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
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

Inherited from:
Cap
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 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

Inherited from:
Cap
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
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 from:
Cap