Interface: UixElement
Defined in: controls/element.ts:16
Structural view of a uikit element as the controls layer needs it.
Controls and their parts are declared as CUSTOM ELEMENTS - <uix-stepper>,
<uix-value> - rather than as attributes on a <div>. That is what makes
one markup file portable across every adapter: the IWSDK 0.5 parser rejects
unknown attributes on built-in tags, but accepts a custom tag declared in a
component set, and the three.js / XR Blocks parser accepts custom tags with
no registration at all.
Both paths expose the declared tag the same way, on
userData.customElement.componentName. Parameters stay data-uix-*
attributes, which land in userData camelCased with data- stripped:
data-uix-min="0" → userData.uixMin.
Properties
| Property | Type | Defined in |
|---|---|---|
children | UixElement[] | controls/element.ts:18 |
userData | Record<string, unknown> | controls/element.ts:17 |
Methods
addEventListener()
addEventListener(type: string, listener: (event?: unknown) => void): void;
Defined in: controls/element.ts:19
Parameters
| Parameter | Type |
|---|---|
type | string |
listener | (event?: unknown) => void |
Returns
void
setProperties()
setProperties(props: Record<string, unknown>): void;
Defined in: controls/element.ts:20
Parameters
| Parameter | Type |
|---|---|
props | Record<string, unknown> |
Returns
void