Method SetClass
SetClass(ElementReference, params string[])
Sets CSS class in the element specified by a selector or DOM reference.
Declaration
Task SetClass(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 |
Returns
| Type | Description |
|---|---|
| Task | A task representing the asynchronous operation. |