Wraps up a HTML attribute in a value which isn't a string.
An Attr, it's associated value, and an AttrValue of the correct type
Used to specify how to handle a particular type T when it is used as the value of a Attr.
Trait containing the contents of the Attrs module, so they can be mixed in to other objects if needed.
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 Bundle[T].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
from js.Any
to Attr
, so that you can attach objects to the resultant
dom.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[T]
(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.
Marker sub-type of Modifier which signifies that that type can be rendered as a standalone fragment of Output.
Represents a value that can be nested within a TypedTag.
Wraps up a CSS style in a value.
A Style, it's associated value, and a StyleValue of the correct type
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.
Trait that contains the contents of the Styles
object, so they can
be mixed in to other objects if needed.
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.
Contains CSS styles which are only used for SVG.
Contains CSS styles which are only used for SVG. These are not imported by default to avoid namespace pollution.
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 that contains the contents of the Tags
object, so they can be mixed
in to other objects if needed.
Contains HTML tags which are used less frequently.
Contains HTML tags which are used less frequently. These are generally imported individually as needed.
A generic representation of a Scalatags tag.
A generic representation of a Scalatags tag.
The base type that this tag represents. On Scala-JVM, this is all
Nothing
, while on ScalaJS this could be the dom.XXXElement
associated with that tag name.
Created by haoyi on 6/2/14.
Used to specify how to handle a particular type T when it is used as the value of a Attr. Only types with a specified AttrValue may be used.