HtmlProps

trait HtmlProps
class Object
trait Matchable
class Any

Value members

Concrete methods

protected def boolProp(key: String): HtmlProp[Boolean, Boolean]
protected def doubleProp(key: String): HtmlProp[Double, Double]
def htmlProp[V, DomV](key: String, codec: Codec[V, DomV]): HtmlProp[V, DomV]

Create custom HTML element property

Create custom HTML element property

Type parameters:
DomV
  • value type for this prop in the underlying JS DOM.
V
  • value type for this prop in Scala
Value parameters:
codec
  • used to encode V into DomV, e.g. StringAsIsCodec,
key
  • name of the prop in JS, e.g. "value"
protected def intProp(key: String): HtmlProp[Int, Int]
protected def stringProp(key: String): HtmlProp[String, String]

Concrete fields

lazy val accept: HtmlProp[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.

See also:
lazy val accessKey: HtmlProp[String, String]

Specifies a shortcut key to activate/focus an element

Specifies a shortcut key to activate/focus an element

See also:
lazy val action: HtmlProp[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.

Only applies to FormTags.form

See also:
lazy val alt: HtmlProp[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.

See also:
lazy val autoCapitalize: HtmlProp[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"

See also:
lazy val autoComplete: HtmlProp[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).

See also:
lazy val autoFocus: HtmlProp[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).

See also:
lazy val checked: HtmlProp[Boolean, Boolean]

When the value of the type attribute is "radio" or "checkbox", this property determines whether it is checked or not. This is different from checked attribute, which contains the initial checked status of the element. More info: https://stackoverflow.com/a/6004028/2601788 (checked behaves similar to value)

When the value of the type attribute is "radio" or "checkbox", this property determines whether it is checked or not. This is different from checked attribute, which contains the initial checked status of the element. More info: https://stackoverflow.com/a/6004028/2601788 (checked behaves similar to value)

See also: defaultChecked prop / attribute

lazy val colSpan: HtmlProp[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).

See also:
lazy val cols: HtmlProp[Int, Int]

The visible width of text input or