__GetDataByKey
Returns the value of a specific data- attribute of an Element.
Key | Description |
---|---|
element | Any Element object. |
key | data- key, a case-sensitive string. |
Returns the data- value corresponding to the data- key of the current Element, which can be of any type.
The frontend framework can retrieve the value of a data- attribute of an Element as follows.