Gets a custom data attribute from an element. The key should be
in camelCase format (e.g "keyName" for the "data-key-name" attribute).
|
code » | |
Gets all custom data attributes as a string map. The attribute names will be
camel cased (e.g., data-foo-bar -> dataset['fooBar']). This operation is not
safe for attributes having camel-cased names clashing with already existing
properties (e.g., data-to-string -> dataset['toString']).
|
code » | |
Checks whether custom data attribute exists on an element. The key should be
in camelCase format (e.g "keyName" for the "data-key-name" attribute).
|
code » | |
![]()
Removes a custom data attribute from an element. The key should be
in camelCase format (e.g "keyName" for the "data-key-name" attribute).
|
code » | |
![]()
Sets a custom data attribute on an element. The key should be
in camelCase format (e.g "keyName" for the "data-key-name" attribute).
|
code » |