Function: useAddClass()
useAddClass(
target,className):void
Defined in: src/infrastructure/dom/dom.service.ts:153
Adds one or more CSS classes to the target element.
Parameters
target
string | Element
A CSS selector string or an Element instance.
className
string
The class name to add.
Returns
void
Example
useAddClass("#header", "sticky");
useAddClass(myElement, "visible");