- toggleClasses(...classes: string[]): ((matched: boolean, statElement: default<HTMLElement>) => void)
-
Parameters
-
Rest
...classes: string[]
Returns ((matched: boolean, statElement: default<HTMLElement>) => void)
-
- (matched: boolean, statElement: default<HTMLElement>): void
-
Parameters
-
matched: boolean
-
statElement: default<HTMLElement>
Returns void
Returns a
when()
handler that will toggle classes on astatElement
based on whether thepredicate
matched.