hyTags
HomeHome Getting StartedGetting Started DocumentationDocumentation

data-get

Gets the value of a data attribute from an element
Parameter
Type
Description
name
string
The name of the data attribute (without the 'data-' prefix)
return
string
The value of the data attribute, or nil if it doesn't exist