Function: useHasClass()
useHasClass(
target,className):boolean
Defined in: src/infrastructure/dom/dom.service.ts:215
Checks whether the target element has a given CSS class.
Parameters
target
string | Element
A CSS selector string or an Element instance.
className
string
The class name to check.
Returns
boolean
true if the class exists, false otherwise.
Example
if (useHasClass(".btn", "disabled")) {
// button is disabled
}