Skip to main content

Interface: UixElement

Defined in: packages/webxr-uiextensions/src/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

PropertyTypeDefined in
childrenUixElement[]packages/webxr-uiextensions/src/controls/element.ts:18
userDataRecord<string, unknown>packages/webxr-uiextensions/src/controls/element.ts:17

Methods

addEventListener()

addEventListener(type: string, listener: (event?: unknown) => void): void;

Defined in: packages/webxr-uiextensions/src/controls/element.ts:19

Parameters

ParameterType
typestring
listener(event?: unknown) => void

Returns

void


setProperties()

setProperties(props: Record<string, unknown>): void;

Defined in: packages/webxr-uiextensions/src/controls/element.ts:20

Parameters

ParameterType
propsRecord<string, unknown>

Returns

void