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