| Function Summary | |
get(?Element element, string key) ⇒ ?stringGets a custom data attribute from an element. The key should be in camelCase format (e.g "keyName" for the "data-key-name" attribute). | |
has(?Element element, string key) ⇒ booleanChecks whether custom data attribute exists on an element. The key should be in camelCase format (e.g "keyName" for the "data-key-name" attribute). | |
remove(?Element element, string key)Removes a custom data attribute from an element. The key should be in camelCase format (e.g "keyName" for the "data-key-name" attribute). | |
set(?Element element, string key, string value)Sets a custom data attribute on an element. The key should be in camelCase format (e.g "keyName" for the "data-key-name" attribute). | |