Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents standard element properties present on all elements

Hierarchy

Index

Properties

Optional aria

aria?: IAriaset

Combines aria-* properties into one object, so that it is easier (less verbose) to specify them. When this object is serialized to HTML element, each property name is converted to dash-style and prefixed with the aria- string. The values are always converted to strings according to the following rules:

  • strings are returned as is.
  • arrays are converted by converting their items using these rules and joining them with spaces.
  • everything else is converted by calling the toString method.

Optional class

class?: ClassMoniker

Optional dataset

dataset?: DatasetPropType

Combines data-* properties into one object, so that it is easier (less verbose) to specify them. When this object is serialized to HTML element, each property name is converted to dash-style and prefixed with the data- string. The values are always converted to strings according to the following rules:

  • strings are returned as is.
  • arrays are converted by converting their items using these rules and joining them with spaces.
  • everything else is converted by calling the toString method.

Optional draggable

draggable?: "true" | "false"

Optional id

Optional lang

lang?: string

Optional role

role?: string

Optional style

style?: string | Styleset

Optional tabindex

tabindex?: number

Optional xmlns

xmlns?: string