Function: useSetDataAttribute()
useSetDataAttribute(
target,key,value):void
Defined in: src/infrastructure/dom/dom.service.ts:314
Sets a data-* attribute on the target element.
Parameters
target
string | HTMLElement
A CSS selector string or an HTMLElement instance.
key
string
The data key (without the data- prefix).
value
string
The value to set.
Returns
void
Example
useSetDataAttribute("tr.row", "status", "active");