Tags

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

Trait that contains the contents of the Tags object, so they can be mixed in to other objects if needed.

Attributes

Graph
Supertypes
trait Util[Builder, Output, FragT]
trait LowPriUtil[Builder, Output, FragT]
class Object
trait Matchable
class Any
Known subtypes
trait Tags
object all.type
object short.type
object tags.type
trait Tags[Output, FragT]
object all.type
object short.type
object tags.type
Show all

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

Abstract methods

def `object`: TypedTag[Builder, Output, FragT]

Represents an external resource, which is treated as an image, an HTML sub-document, or an external resource to be processed by a plug-in.

Represents an external resource, which is treated as an image, an HTML sub-document, or an external resource to be processed by a plug-in.

MDN

Attributes

def a: TypedTag[Builder, Output, FragT]

Represents a hyperlink, linking to another resource.

Represents a hyperlink, linking to another resource.

MDN

Attributes

def area: TypedTag[Builder, Output, FragT]

In conjunction with map, defines an image map

In conjunction with map, defines an image map

MDN

Attributes

def audio: TypedTag[Builder, Output, FragT]

Represents a sound or an audio stream.

Represents a sound or an audio stream.

MDN

Attributes

def b: TypedTag[Builder, Output, FragT]

Bold text.

Bold text.

MDN

Attributes

def base: TypedTag[Builder, Output, FragT]

Defines the base URL for relative URLs in the page.

Defines the base URL for relative URLs in the page.

MDN

Attributes

def blockquote: TypedTag[Builder, Output, FragT]

Represents a content that is quoted from another source.

Represents a content that is quoted from another source.

MDN

Attributes

def body: TypedTag[Builder, Output, FragT]

Represents the content of an HTML document. There is only one body element in a document.

Represents the content of an HTML document. There is only one body element in a document.

MDN

Attributes

def br: TypedTag[Builder, Output, FragT]

Represents a line break.

Represents a line break.

MDN

Attributes

def button: TypedTag[Builder, Output, FragT]

A button

A button

MDN

Attributes

def canvas: TypedTag[Builder, Output, FragT]

Represents a bitmap area that scripts can use to render graphics like graphs, games or any visual images on the fly.

Represents a bitmap area that scripts can use to render graphics like graphs, games or any visual images on the fly.

MDN

Attributes

def caption: TypedTag[Builder, Output, FragT]

The title of a table.

The title of a table.

MDN

Attributes

def cite: TypedTag[Builder, Output, FragT]

Represents the title of a work being cited.

Represents the title of a work being cited.

MDN

Attributes

def code: TypedTag[Builder, Output, FragT]

Represents computer code.

Represents computer code.

MDN

Attributes

def col: TypedTag[Builder, Output, FragT]

A single column.

A single column.

MDN

Attributes

def colgroup: TypedTag[Builder, Output, FragT]

A set of columns.

A set of columns.

MDN

Attributes

def datalist: TypedTag[Builder, Output, FragT]

A set of predefined options for other controls.

A set of predefined options for other controls.

MDN

Attributes

def dd: TypedTag[Builder, Output, FragT]

Represents the definition of the terms immediately listed before it.

Represents the definition of the terms immediately listed before it.

MDN

Attributes

def del: TypedTag[Builder, Output, FragT]

Defines a removal from the document.

Defines a removal from the document.

MDN

Attributes

def div: TypedTag[Builder, Output, FragT]

Represents a generic container with no special meaning.

Represents a generic container with no special meaning.

MDN

Attributes

def dl: TypedTag[Builder, Output, FragT]

Defines a definition list; a list of terms and their associated definitions.

Defines a definition list; a list of terms and their associated definitions.

MDN

Attributes

def dt: TypedTag[Builder, Output, FragT]

Represents a term defined by the next dd

Represents a term defined by the next dd

MDN

Attributes

def em: TypedTag[Builder, Output, FragT]

Represents emphasized text.

Represents emphasized text.

MDN

Attributes

def embed: TypedTag[Builder, Output, FragT]

Represents a integration point for an external, often non-HTML, application or interactive content.

Represents a integration point for an external, often non-HTML, application or interactive content.

MDN

Attributes

def fieldset: TypedTag[Builder, Output, FragT]

A set of fields.

A set of fields.

MDN

Attributes

def figcaption: TypedTag[Builder, Output, FragT]

Represents the legend of a figure.

Represents the legend of a figure.

MDN

Attributes

def figure: TypedTag[Builder, Output, FragT]

Represents a figure illustrated as part of the document.

Represents a figure illustrated as part of the document.

MDN

Attributes

def form: TypedTag[Builder, Output, FragT]

Represents a form, consisting of controls, that can be submitted to a server for processing.

Represents a form, consisting of controls, that can be submitted to a server for processing.

MDN

Attributes

def h1: TypedTag[Builder, Output, FragT]

Heading level 1

Heading level 1

MDN

Attributes

def h2: TypedTag[Builder, Output, FragT]

Heading level 2

Heading level 2

MDN

Attributes

def h3: TypedTag[Builder, Output, FragT]

Heading level 3

Heading level 3

MDN

Attributes

def h4: TypedTag[Builder, Output, FragT]

Heading level 4

Heading level 4

MDN

Attributes

def h5: TypedTag[Builder, Output, FragT]

Heading level 5

Heading level 5

MDN

Attributes

def h6: TypedTag[Builder, Output, FragT]

Heading level 6

Heading level 6

MDN

Attributes

def head: TypedTag[Builder, Output, FragT]

Represents a collection of metadata about the document, including links to, or definitions of, scripts and style sheets.

Represents a collection of metadata about the document, including links to, or definitions of, scripts and style sheets.

MDN

Attributes

def header: TypedTag[Builder, Output, FragT]

Defines the header of a page or section. It often contains a logo, the title of the Web site, and a navigational table of content.

Defines the header of a page or section. It often contains a logo, the title of the Web site, and a navigational table of content.

MDN

Attributes

def hr: TypedTag[Builder, Output, FragT]

Represents a thematic break between paragraphs of a section or article or any longer content.

Represents a thematic break between paragraphs of a section or article or any longer content.

MDN

Attributes

def html: TypedTag[Builder, Output, FragT]

Represents the root of an HTML or XHTML document. All other elements must be descendants of this element.

Represents the root of an HTML or XHTML document. All other elements must be descendants of this element.

MDN

Attributes

def i: TypedTag[Builder, Output, FragT]

Italicized text.

Italicized text.

MDN

Attributes

def iframe: TypedTag[Builder, Output, FragT]

Represents a nested browsing context, that is an embedded HTML document.

Represents a nested browsing context, that is an embedded HTML document.

MDN

Attributes

def img: TypedTag[Builder, Output, FragT]

Represents an image.

Represents an image.

MDN

Attributes

def input: TypedTag[Builder, Output, FragT]

A typed data field allowing the user to input data.

A typed data field allowing the user to input data.

MDN

Attributes

def ins: TypedTag[Builder, Output, FragT]

Defines an addition to the document.

Defines an addition to the document.

MDN

Attributes

def label: TypedTag[Builder, Output, FragT]

The caption of a single field

The caption of a single field

MDN

Attributes

def legend: TypedTag[Builder, Output, FragT]

The caption for a fieldset.

The caption for a fieldset.

MDN

Attributes

def li: TypedTag[Builder, Output, FragT]

Defines an item of an list.

Defines an item of an list.

MDN

Attributes

def map: TypedTag[Builder, Output, FragT]

In conjunction with area, defines an image map.

In conjunction with area, defines an image map.

MDN

Attributes

def meta: TypedTag[Builder, Output, FragT]

Defines metadata that can't be defined using another HTML element.

Defines metadata that can't be defined using another HTML element.

MDN

Attributes

def ol: TypedTag[Builder, Output, FragT]

Defines an ordered list of items.

Defines an ordered list of items.

MDN

Attributes

def optgroup: TypedTag[Builder, Output, FragT]

A set of options, logically grouped.

A set of options, logically grouped.

MDN

Attributes

def option: TypedTag[Builder, Output, FragT]

An option in a select element.

An option in a select element.

MDN

Attributes

def p: TypedTag[Builder, Output, FragT]

Defines a portion that should be displayed as a paragraph.

Defines a portion that should be displayed as a paragraph.

MDN

Attributes

def param: TypedTag[Builder, Output, FragT]

Defines parameters for use by plug-ins invoked by object elements.

Defines parameters for use by plug-ins invoked by object elements.

MDN

Attributes

def pre: TypedTag[Builder, Output, FragT]

Indicates that its content is preformatted and that this format must be preserved.

Indicates that its content is preformatted and that this format must be preserved.

MDN

Attributes

def s: TypedTag[Builder, Output, FragT]

Strikethrough element, used for that is no longer accurate or relevant.

Strikethrough element, used for that is no longer accurate or relevant.

MDN

Attributes

def script: TypedTag[Builder, Output, FragT]

Defines either an internal script or a link to an external script. The script language is JavaScript.

Defines either an internal script or a link to an external script. The script language is JavaScript.

MDN

Attributes

def select: TypedTag[Builder, Output, FragT]

A control that allows the user to select one of a set of options.

A control that allows the user to select one of a set of options.

MDN

Attributes

def small: TypedTag[Builder, Output, FragT]

Represents a side comment; text like a disclaimer or copyright, which is not essential to the comprehension of the document.

Represents a side comment; text like a disclaimer or copyright, which is not essential to the comprehension of the document.

MDN

Attributes

def source: TypedTag[Builder, Output, FragT]

Allows the authors to specify alternate media resources for media elements like video or audio

Allows the authors to specify alternate media resources for media elements like video or audio

MDN

Attributes

def span: TypedTag[Builder, Output, FragT]

Represents text with no specific meaning. This has to be used when no other text-semantic element conveys an adequate meaning, which, in this case, is often brought by global attributes like class, lang, or dir.

Represents text with no specific meaning. This has to be used when no other text-semantic element conveys an adequate meaning, which, in this case, is often brought by global attributes like class, lang, or dir.

MDN

Attributes

def strong: TypedTag[Builder, Output, FragT]

Represents especially important text.

Represents especially important text.

MDN

Attributes

def sub: TypedTag[Builder, Output, FragT]

Subscript tag

Subscript tag

MDN

Attributes

def sup: TypedTag[Builder, Output, FragT]

Superscript tag.

Superscript tag.

MDN

Attributes

def table: TypedTag[Builder, Output, FragT]

Represents data with more than one dimension.

Represents data with more than one dimension.

MDN

Attributes

def tbody: TypedTag[Builder, Output, FragT]

The table body.

The table body.

MDN

Attributes

def td: TypedTag[Builder, Output, FragT]

A single cell in a table.

A single cell in a table.

MDN

Attributes

def textarea: TypedTag[Builder, Output, FragT]

A multiline text edit control.

A multiline text edit control.

MDN

Attributes

def tfoot: TypedTag[Builder, Output, FragT]

The table footer.

The table footer.

MDN

Attributes

def th: TypedTag[Builder, Output, FragT]

A header cell in a table.

A header cell in a table.

MDN

Attributes

def thead: TypedTag[Builder, Output, FragT]

The table headers.

The table headers.

MDN

Attributes

def tr: TypedTag[Builder, Output, FragT]

A single row in a table.

A single row in a table.

MDN

Attributes

def track: TypedTag[Builder, Output, FragT]

Allows authors to specify timed text track for media elements like video or audio

Allows authors to specify timed text track for media elements like video or audio

MDN

Attributes

def u: TypedTag[Builder, Output, FragT]

Underlined text.

Underlined text.

MDN

Attributes

def ul: TypedTag[Builder, Output, FragT]

Defines an unordered list of items.

Defines an unordered list of items.

MDN

Attributes

def video: TypedTag[Builder, Output, FragT]

Represents a video, and its associated audio files and captions, with the necessary interface to play it.

Represents a video, and its associated audio files and captions, with the necessary interface to play it.

MDN

Attributes

def wbr: TypedTag[Builder, Output, FragT]

Represents a line break opportunity, that is a suggested point for wrapping text in order to improve readability of text split on several lines.

Represents a line break opportunity, that is a suggested point for wrapping text in order to improve readability of text split on several lines.

MDN

Attributes

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

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