__AddDataset
Adds a data- attribute to the Element object without affecting existing data- attributes.
Key | Description |
---|---|
element | Any Element object. |
key | A case-sensitive string representing the dataset key. |
value | The dataset value, which can be of any type. |
No return value.
The frontend framework can generate render directives in the following way.