com.raquo.domtypes.common
Type members
Classlikes
This type represents an HTML or SVG element attribute.
This type represents an HTML or SVG element attribute.
- Value parameters:
- codec
- Codec needed to convert between
scalaValueType
and String
- Codec needed to convert between
- commentLines
- Scaladoc comment lines for this key
- docUrls
- Scaladoc documentation URLs for this key
- domName
- Native attribute name in the DOM. Note: Does not include SVG namespace. See namespaceQualifiedDomName
- implName
- Method name used to create this key from the old SDT codebase
- namespace
- Defined for certain SVG attributes
- scalaAliases
- Aliases that should be defined linking to the main
scalaName
- Aliases that should be defined linking to the main
- scalaName
- Suggested name of this attribute in Scala.
The name is chosen to
- match Scala naming style (e.g. camelCase)
- avoid name collisions between different types of keys
(e.g.
title
tag vstitle
attribute) - avoid using up popular names for unpopular keys
- Suggested name of this attribute in Scala.
The name is chosen to
- match Scala naming style (e.g. camelCase)
- avoid name collisions between different types of keys
(e.g.
- scalaValueType
- Type of values you can write to this attribute in Scala
Note: in the DOM, the attribute's value is always
String
.
- Type of values you can write to this attribute in Scala
Note: in the DOM, the attribute's value is always
- tagType
- HTML or SVG
This type represent a specific type of DOM element events, e.g. "click" or "scroll".
This type represent a specific type of DOM element events, e.g. "click" or "scroll".
- Value parameters:
- commentLines
- Scaladoc comment lines for this key
- docUrls
- Scaladoc documentation URLs for this key
- domName
- Native event name in the DOM, e.g. "click"
- javascriptEventType
- Type of corresponding event in raw Javascript
- scalaAliases
- Aliases that should be defined linking to the main
scalaName
- Aliases that should be defined linking to the main
- scalaJsEventType
- Type alias of corresponding event in scalajs-dom project See fullScalaJsDomEventType for the full path
- scalaName
- Suggested name of this prop in Scala.
The name is chosen to
- match Scala naming style (e.g. camelCase) and intended use
(event hook names in UI libraries)
- avoid name collisions between different types of keys
(e.g.
title
tag vstitle
attribute) - avoid using up popular names for unpopular keys
- Suggested name of this prop in Scala.
The name is chosen to
- match Scala naming style (e.g. camelCase) and intended use
(event hook names in UI libraries)
- avoid name collisions between different types of keys
(e.g.
This type represents an HTML element property.
This type represents an HTML element property.
- Value parameters:
- codec
- Codec needed to convert between
scalaValueType
anddomValueType
- Codec needed to convert between
- commentLines
- Scaladoc comment lines for this key
- docUrls
- Scaladoc documentation URLs for this key
- domName
- Native attribute name in the DOM.
- domValueType
- Type of values that this property holds in the DOM
- scalaAliases
- Aliases that should be defined linking to the main
scalaName
- Aliases that should be defined linking to the main
- scalaName
- Suggested name of this prop in Scala.
The name is chosen to
- match Scala naming style (e.g. camelCase)
- avoid name collisions between different types of keys
(e.g.
title
tag vstitle
attribute) - avoid using up popular names for unpopular keys
- Suggested name of this prop in Scala.
The name is chosen to
- match Scala naming style (e.g. camelCase)
- avoid name collisions between different types of keys
(e.g.
- scalaValueType
- Type of values you can write to this attribute in Scala
This type represents a reflected attribute – that is, a property of an HTML element
that is linked to a corresponding HTML attribute, such that their value matches, and
writing to one updates the other as well. Example: id
property / "id" attribute.
This type represents a reflected attribute – that is, a property of an HTML element
that is linked to a corresponding HTML attribute, such that their value matches, and
writing to one updates the other as well. Example: id
property / "id" attribute.
Your library can choose to operate on these keys using either the props DOM API (element.id = "newId") or the attributes DOM API (element.setAttribute("id", "newId"). The former has better performance.
- Value parameters:
- attrCodec
- Codec needed to convert between
scalaValueType
and String
- Codec needed to convert between
- commentLines
- Scaladoc comment lines for this key
- docUrls
- Scaladoc documentation URLs for this key
- domAttrName
- Native attribute name in the DOM.
- domPropName
- Native property name in the DOM.
Note: this can be different from domAttrName.
For example,
value
attribute matchesdefaultValue
property.
- Native property name in the DOM.
Note: this can be different from domAttrName.
For example,
- domPropValueType
- Type of values you can write to this property in the DOM
Note: in contrast to element properties, in the DOM, the attributes'
values are always of type
String
.
- Type of values you can write to this property in the DOM
Note: in contrast to element properties, in the DOM, the attributes'
values are always of type
- propCodec
- Codec needed to convert between
scalaValueType
anddomPropValueType
- Codec needed to convert between
- scalaName
- Suggested name of this attribute in Scala.
The name is chosen to
- match Scala naming style (e.g. camelCase)
- avoid name collisions between different types of keys
(e.g.
title
tag vstitle
attribute) - avoid using up popular names for unpopular keys
- Suggested name of this attribute in Scala.
The name is chosen to
- match Scala naming style (e.g. camelCase)
- avoid name collisions between different types of keys
(e.g.
- scalaValueType
- Type of values you can write to this reflected attribute in Scala
This type represents a CSS style property, such as "background" or "border-color"
This type represents a CSS style property, such as "background" or "border-color"
- Value parameters:
- commentLines
- Scaladoc comment lines for this key
- docUrls
- Scaladoc documentation URLs for this key
- domName
- Native style property name in the DOM.
- implName
- Method name used to create this key from the old SDT codebase
- scalaAliases
- Aliases that should be defined linking to the main
scalaName
- Aliases that should be defined linking to the main
- scalaName
- Suggested name of this prop in Scala.
The name is chosen to
- match Scala naming style (e.g. camelCase)
- avoid name collisions between different types of keys
(e.g.
title
tag vstitle
attribute) - avoid using up popular names for unpopular keys
- Suggested name of this prop in Scala.
The name is chosen to
- match Scala naming style (e.g. camelCase)
- avoid name collisions between different types of keys
(e.g.
- valueTraits
- List of style traits that provide additional information about keywords and units that can be used for this property. See StyleTraitDef
- valueType
- Type of values you can write to this attribute in Scala
Note: in addition to this type, you can always write
String
into any style prop
- Type of values you can write to this attribute in Scala
Note: in addition to this type, you can always write
This type represents a set of keywords ("block", "black", etc.) and units ("px", "ms", etc.) that can be used with a particular CSS style property.
This type represents a set of keywords ("block", "black", etc.) and units ("px", "ms", etc.) that can be used with a particular CSS style property.
- Value parameters:
- extendsTraits
- scalaName-s of
StyleTraitDef
-s that this trait extends
- scalaName-s of
- extendsUnits
- list of types of units that form valid values for style properties extending this trait. #TODO
- keywordDefGroups
- list of keywords that are valid values for style properties extending this trait. See StyleKeywordDef - It's grouped by a comment string that will appear on top of the first keyword in the group, e.g. see the "display" keywords.
- scalaName
- suggested core name for this trait.
This type represents an HTML or SVG tag, such as div
or input
.
This type represents an HTML or SVG tag, such as div
or input
.
- Value parameters:
- commentLines
- Scaladoc comment lines for this key
- docUrls
- Scaladoc documentation URLs for this key
- domName
- Native tag name in the DOM
- isVoid
- If true, elements of this type can have no children
- javascriptElementType
- Type of corresponding elements in raw Javascript
- scalaAliases
- Aliases that should be defined linking to the main
scalaName
- Aliases that should be defined linking to the main
- scalaJsElementTypeAlias
- Type of corresponding elements in scalajs-dom project See fullScalaJsDomElementType for the full path
- scalaName
- Suggested name of this tag in Scala.
The name is chosen to
- match Scala naming style (e.g. camelCase)
- avoid name collisions between different types of keys
(e.g.
title
tag vstitle
attribute) - avoid using up popular names for unpopular keys
- Suggested name of this tag in Scala.
The name is chosen to
- match Scala naming style (e.g. camelCase)
- avoid name collisions between different types of keys
(e.g.
- tagType
- HTML or SVG