_class()
_class(
x,s):HTMLElement
Defined in: js-api/ui.ts:123
Internal
Internal helper to add a CSS class and return the element for chaining. Prefer using ui.element() with className parameter or standard classList API.
Parameters
| Parameter | Type |
|---|---|
x | HTMLElement |
s | string |
Returns
HTMLElement