Map<String,String> dataset
read / write

Allows access to all custom data attributes (data-*) set on this element.

The keys for the map must follow these rules:

The name must not begin with 'xml'. The name cannot contain a semi-colon (';'). The name cannot contain any capital letters.

Any keys from markup will be converted to camel-cased keys in the map.

For example, HTML specified as:

Would be accessed in Dart as:

var value = element.dataset'myRandomValue';

See also:

Custom data attributes