_class(x, s): HTMLElement
Defined in: ui.ts:121
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