package generic
- Alphabetic
- Public
- Protected
Type Members
- trait AbstractShort[Builder, Output <: FragT, FragT] extends AnyRef
- trait Aggregate[Builder, Output <: FragT, FragT] extends Aliases[Builder, Output, FragT]
- trait Aliases[Builder, Output <: FragT, FragT] extends AnyRef
- case class Attr(name: String, namespace: Option[Namespace] = None, raw: Boolean = false) extends Product with Serializable
Wraps up a HTML attribute in a value which isn't a string.
Wraps up a HTML attribute in a value which isn't a string.
- case class AttrPair[Builder, T](a: Attr, v: T, ev: AttrValue[Builder, T]) extends Modifier[Builder] with Product with Serializable
An Attr, it's associated value, and an AttrValue of the correct type
- trait AttrValue[Builder, T] extends AnyRef
Used to specify how to handle a particular type T when it is used as the value of a Attr.
- trait Attrs[Builder, Output <: FragT, FragT] extends InputAttrs[Builder, Output, FragT] with ClipboardEventAttrs[Builder, Output, FragT] with MediaEventAttrs[Builder, Output, FragT] with MiscellaneousEventAttrs[Builder, Output, FragT] with KeyboardEventAttrs[Builder, Output, FragT] with MouseEventAttrs[Builder, Output, FragT] with WindowEventAttrs[Builder, Output, FragT] with FormEventAttrs[Builder, Output, FragT]
Trait containing the contents of the Attrs module, so they can be mixed in to other objects if needed.
Trait containing the contents of the Attrs module, so they can be mixed in to other objects if needed. This should contain "all" attributes and mix in other traits (defined above) as needed to get full coverage.
- trait Bundle[Builder, Output <: FragT, FragT] extends Aliases[Builder, Output, FragT]
An abstract representation of the Scalatags package.
An abstract representation of the Scalatags package. This allows you to customize Scalatags to work with different backends, by defining your own implementation of
Tag
, and specifying how the various Attrs and Styles contribute to construct the Builder. Apart from satisfying the default String/Boolean/Numeric implementations of Attr and Style, you can also define your own, e.g. ScalaJS ships with an implicit conversion fromjs.Any
toAttr
, so that you can attach objects to the resultantdom.Element
without serializing them.By default, Scalatags ships with scalatags.Text:
Bundle[StringBuilder]
on all platforms, and scalatags.JsDom:Bundle[dom.Element]
on ScalaJS.It is possible to write entirely backend-agnostic Scalatags code by making your code parametric on a Bundle (or some subclass of it), and importing from that rather than importing directly from scalatags.JsDom or scalatags.Text. You will naturally only be able to use functionality (e.g. implicit conversions to Attrs and Styles which are present in the common interface.
- trait ClipboardEventAttrs[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]
Clipboard Events
- trait FormEventAttrs[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]
Form Events that are triggered by actions inside an HTML form.
Form Events that are triggered by actions inside an HTML form. However, these events apply to almost all HTML elements but are most commonly used in form elements.
- trait Frag[Builder, +FragT] extends Modifier[Builder]
Marker sub-type of scalatags.generic.Modifier which signifies that that type can be rendered as a standalone fragment of FragT.
Marker sub-type of scalatags.generic.Modifier which signifies that that type can be rendered as a standalone fragment of FragT. This excludes things like scalatags.generic.AttrPairs or scalatags.generic.StylePairs which only make sense as part of a parent fragment
- trait GlobalAttrs[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]
A trait for global attributes that are applicable to any HTML5 element.
A trait for global attributes that are applicable to any HTML5 element. All traits that define Attrs should derive from this trait since all groupings of attributes should include these global ones.
- trait InputAttrs[Builder, Output <: FragT, FragT] extends GlobalAttrs[Builder, Output, FragT]
Attributes applicable only to the input element.
Attributes applicable only to the input element. This set is broken out because it may be useful to identify the attributes of the input element separately from other groupings. The attributes permitted by the input element are likely the most complex of any element in HTML5.
- trait KeyboardEventAttrs[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]
Keyboard Events - triggered by user action son the keyboard or similar user actions
- trait LowPriUtil[Builder, Output <: FragT, FragT] extends AnyRef
- trait MediaEventAttrs[Builder, Output <: FragT, FragT] extends SharedEventAttrs[Builder, Output, FragT]
Media Events - triggered by media like videos, images and audio.
Media Events - triggered by media like videos, images and audio. These apply to all HTML elements, but they are most common in media elements, like <audio>, <embed>, ,
- trait MiscellaneousEventAttrs[Builder, Output <: FragT, FragT] extends SharedEventAttrs[Builder, Output, FragT]
Miscellaneous Events
- trait Modifier[Builder] extends AnyRef
Represents a value that can be nested within a scalatags.generic.TypedTag.
Represents a value that can be nested within a scalatags.generic.TypedTag. This can be another scalatags.generic.Modifier, but can also be a CSS style or HTML attribute binding, which will add itself to the node's attributes but not appear in the final
children
list. - trait MouseEventAttrs[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]
Mouse Events: triggered by a mouse, or similar user actions.
- trait Namespace extends AnyRef
Represents a single XML namespace.
Represents a single XML namespace. This is currently ignored in
scalatags.Text
, but used to create elements with the correct namespace inscalatags.JsDom
. A Namespace can be provided implicitly (or explicitly) when creating tags via"".tag
, with a default of "http://www.w3.org/1999/xhtml" if none is found. - case class PixelStyle(jsName: String, cssName: String) extends Product with Serializable
Wraps up a CSS style in a value.
- trait PixelStyleValue[Builder, T] extends AnyRef
- Annotations
- @implicitNotFound("No PixelStyleValue defined for type ${T}; scalatags does not know how to use ${T} as an style")
- trait SharedEventAttrs[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]
- case class Style(jsName: String, cssName: String) extends Product with Serializable
Wraps up a CSS style in a value.
- trait StyleMisc[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]
- case class StylePair[Builder, T](s: Style, v: T, ev: StyleValue[Builder, T]) extends Modifier[Builder] with Product with Serializable
A Style, it's associated value, and a StyleValue of the correct type
- trait StyleProcessor extends AnyRef
- trait StyleValue[Builder, T] extends AnyRef
Used to specify how to handle a particular type T when it is used as the value of a Style.
Used to specify how to handle a particular type T when it is used as the value of a Style. Only types with a specified StyleValue may be used.
- Annotations
- @implicitNotFound("No StyleValue defined for type ${T}; scalatags does not know how to use ${T} as an style")
- trait Styles[Builder, Output <: FragT, FragT] extends StyleMisc[Builder, Output, FragT]
Trait that contains the contents of the
Styles
object, so they can be mixed in to other objects if needed. - trait Styles2[Builder, Output <: FragT, FragT] extends StyleMisc[Builder, Output, FragT]
Contains CSS styles which are used less frequently.
Contains CSS styles which are used less frequently. These are not imported by default to avoid namespace pollution.
- trait SvgAttrs[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]
- trait SvgTags[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]
Contains Tags which are only used for SVG.
Contains Tags which are only used for SVG. These are not imported by default to avoid namespace pollution.
- 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. - trait Tags2[Builder, Output <: FragT, FragT] extends Util[Builder, Output, FragT]
Contains HTML tags which are used less frequently.
Contains HTML tags which are used less frequently. These are generally imported individually as needed.
- trait TypedTag[Builder, +Output <: FragT, +FragT] extends Frag[Builder, FragT]
A generic representation of a Scalatags tag.
A generic representation of a Scalatags tag.
- Output
The base type that this tag represents. On Scala-JVM, this is all
Nothing
, while on ScalaJS this could be thedom.XXXElement
associated with that tag name.
- trait Util[Builder, Output <: FragT, FragT] extends LowPriUtil[Builder, Output, FragT]
Created by haoyi on 6/2/14.
- trait WindowEventAttrs[Builder, Output <: FragT, FragT] extends SharedEventAttrs[Builder, Output, FragT]
Window Events