scalatags.generic
Members list
Type members
Classlikes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
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.
Value parameters
- name
-
the name of this particular attribute
- namespace
-
an XML Namespace that this attribute lives in
- raw
-
all Attrs are checked to fail fast if their names are invalid XML attrs; flagging them as raw disables the checks in the few cases you actually want invalid XML attrs (e.g. AngularJS)
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
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 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.
Attributes
- Supertypes
-
class Objecttrait Matchableclass AnyShow all
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.
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.
Type parameters
- Builder
-
The type to which Attrs and Styles are applied to when the
Tag
is being rendered to give a final result.
Attributes
- Supertypes
- Known subtypes
-
object Text.type
Clipboard Events
Clipboard Events
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
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.
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.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
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
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
Attributes
- Supertypes
- Known subtypes
-
class TypedTag[Output]class TypedTag[O]trait Fragclass RawFragclass StringFragclass RawFragclass StringFragShow all
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.
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
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
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.
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.
Attributes
- Supertypes
-
class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
Keyboard Events - triggered by user action son the keyboard or similar user actions
Keyboard Events - triggered by user action son the keyboard or similar user actions
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait SvgTagsobject svgTags.typeobject svgTags.typetrait Tagsobject all.typeobject short.typeobject tags.typeobject all.typeobject short.typeobject tags.typetrait Tags2object tags2.typeobject tags2.typetrait TagFactorytrait Capobject attrs.typeobject *.typeobject styles.typeobject styles2.typeobject svgAttrs.typetrait Capobject attrs.typeobject *.typeobject styles.typeobject styles2.typeobject svgAttrs.typeShow all
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