Method RemoveClass
RemoveClass(string, params string[])
Removes one or more CSS classes from the element specified by a selector or DOM reference.
Declaration
Task RemoveClass(string selectorOrElement, params string[] classNames)
Parameters
| Type | Name | Description |
|---|---|---|
| string | selectorOrElement | A CSS selector (e.g., ".active") or an ElementReference representing the target element. |
| string[] | classNames | One or more CSS class names to remove. |
Returns
| Type | Description |
|---|---|
| Task | A task representing the asynchronous operation. |
RemoveClass(ElementReference, params string[])
Removes one or more CSS classes from the element specified by a selector or DOM reference.
Declaration
Task RemoveClass(ElementReference elementRef, params string[] classNames)
Parameters
| Type | Name | Description |
|---|---|---|
| ElementReference | elementRef | A reference to the HTML element. |
| string[] | classNames | One or more CSS class names to remove. |
Returns
| Type | Description |
|---|---|
| Task | A task representing the asynchronous operation. |