data
data(
element,name):string|null
Defined in: core/dom/attributes.ts:9
Returns the value of a data-* attribute, or null if it is not set.
Reads the attribute directly because element.dataset does not exist in IE10.
Parameters
Section titled “Parameters”element
Section titled “element”Element
Element to read from.
string
Attribute name without the data- prefix.
Returns
Section titled “Returns”string | null