ReflectedHtmlAttrs

trait ReflectedHtmlAttrs[RA[_, _]]

Reflected attributes are attributes that can be set using either a DOM property or an HTML attribute. In practical terms, you don't need to load both props and attrs for these properties, using just one would be enough as they are interchangeable.

Reflected attributes are attributes that can be set using either a DOM property or an HTML attribute. In practical terms, you don't need to load both props and attrs for these properties, using just one would be enough as they are interchangeable.

Note that in JS browser engines, using props is faster than attributes.

For more background on reflected attributes, see:

For type param docs, see ReflectedHtmlAttrBuilder

Type Params
RA

Reflected Attribute, canonically either com.raquo.domtypes.generic.keys.Prop or a type alias to com.raquo.domtypes.generic.keys.HtmlAttr (to remove the extra type param)

class Object
trait Matchable
class Any

Value members

Concrete fields

lazy val accept: RA[String, String]

If the value of the type attribute is file, this attribute indicates the types of files that the server accepts; otherwise it is ignored.

If the value of the type attribute is file, this attribute indicates the types of files that the server accepts; otherwise it is ignored.

MDN

lazy val accessKey: RA[String, String]

Specifies a shortcut key to activate/focus an element

Specifies a shortcut key to activate/focus an element

lazy val action: RA[String, String]

The URI of a program that processes the information submitted via the form. This value can be overridden by a formAction attribute on a button or input element.

The URI of a program that processes the information submitted via the form. This value can be overridden by a formAction attribute on a button or input element.

MDN

Only applies to com.raquo.domtypes.generic.defs.tags.FormTags.form

lazy val alt: RA[String, String]

This attribute defines the alternative text describing the image. Users will see this displayed if the image URL is wrong, the image is not in one of the supported formats, or until the image is downloaded.

This attribute defines the alternative text describing the image. Users will see this displayed if the image URL is wrong, the image is not in one of the supported formats, or until the image is downloaded.

MDN

lazy val autoCapitalize: RA[String, String]

This is a nonstandard attribute used by Chrome and iOS Safari Mobile, which controls whether and how the text value should be automatically capitalized as it is entered/edited by the user.

This is a nonstandard attribute used by Chrome and iOS Safari Mobile, which controls whether and how the text value should be automatically capitalized as it is entered/edited by the user.

Possible values: "none" | "sentences" | "words" | "characters"

MDN

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Non-standard_%3Cinput%3E_attributes

lazy val autoComplete: RA[String, String]

This attribute indicates whether the value of the control can be automatically completed by the browser. This attribute is ignored if the value of the type attribute is hidden, checkbox, radio, file, or a button type (button, submit, reset, image).

This attribute indicates whether the value of the control can be automatically completed by the browser. This attribute is ignored if the value of the type attribute is hidden, checkbox, radio, file, or a button type (button, submit, reset, image).

MDN

lazy val autoFocus: RA[Boolean, Boolean]

This Boolean attribute lets you specify that a form control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form element in a document can have the autofocus attribute, which is a Boolean. It cannot be applied if the type attribute is set to hidden (that is, you cannot automatically set focus to a hidden control).

This Boolean attribute lets you specify that a form control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form element in a document can have the autofocus attribute, which is a Boolean. It cannot be applied if the type attribute is set to hidden (that is, you cannot automatically set focus to a hidden control).

MDN

lazy val colSpan: RA[Int, Int]

This attribute contains a non-negative integer value that indicates for how many columns the cell extends. Its default value is 1; if its value is set to 0, it extends until the end of the , even if implicitly defined, that the cell belongs to. Values higher than 1000 will be considered as incorrect and will be set to the default value (1).

This attribute contains a non-negative integer value that indicates for how many columns the cell extends. Its default value is 1; if its value is set to 0, it extends until the end of the , even if implicitly defined, that the cell belongs to. Values higher than 1000 will be considered as incorrect and will be set to the default value (1).

MDN

lazy val cols: RA[Int, Int]

The visible width of text input or