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.
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.
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
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 (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.
Clipboard Events
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.
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
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.
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.
Keyboard Events - triggered by user action son the keyboard or similar user actions
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>, ,
Miscellaneous Events
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.
Mouse Events: triggered by a mouse, or similar user actions.
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 in scalatags.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.
Wraps up a CSS style in a value.
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 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.
Window Events
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.