Skip to main content

Interface: CreateWindowOptions

Defined in: xrblocks-uiextensions/src/host.ts:82

Options for UixWindowHost.createWindow.

Everything but config comes from the portable WindowOptionsBase, so an option means the same thing here as on the IWSDK adapter. id is optional: leave it out and the host names the window uix-window-<n>.

One option is accepted but not acted on: movable. This host has no title-bar drag of its own yet - dragging comes from the XR Blocks / desktop input layer above it - so the flag is recorded and otherwise ignored.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
closable?booleanTitle-bar buttons. Every button is OFF unless enabled here, or later through WindowManager.setChrome. The chrome markup may still contain the elements; a disabled button is hidden and its click ignored.WindowOptionsBase.closablewebxr-uiextensions/src/adapter.ts:209
configunknownCompiled UIKitML JSON (the { element, classes } shape).-xrblocks-uiextensions/src/host.ts:84
dockable?booleanThe DOCK button, which returns the window to where it spawned.WindowOptionsBase.dockablewebxr-uiextensions/src/adapter.ts:213
dockMode?DockModeValue-WindowOptionsBase.dockModewebxr-uiextensions/src/adapter.ts:196
followOffset?Vec3TupleHead-relative offset used in body-follow mode (meters).WindowOptionsBase.followOffsetwebxr-uiextensions/src/adapter.ts:222
followSpeed?number-WindowOptionsBase.followSpeedwebxr-uiextensions/src/adapter.ts:223
followTolerance?number-WindowOptionsBase.followTolerancewebxr-uiextensions/src/adapter.ts:224
handMenu?Partial<HandMenuOptions>Where a hand-locked window rides: which hand, which side of the palm, and whether the palm must face the viewer. Defaults: left hand, above the fingertips, gated. Ignored in the other dock modes but kept, so a later setDockMode(id, 'hand-locked') uses it.WindowOptionsBase.handMenuwebxr-uiextensions/src/adapter.ts:220
id?stringStable window id. Adapters generate one when it is absent.WindowOptionsBase.idwebxr-uiextensions/src/adapter.ts:193
maxHeight?number-WindowOptionsBase.maxHeightwebxr-uiextensions/src/adapter.ts:201
maxWidth?numberFit the panel into this box in meters, preserving aspect ratio.WindowOptionsBase.maxWidthwebxr-uiextensions/src/adapter.ts:200
minimizable?boolean-WindowOptionsBase.minimizablewebxr-uiextensions/src/adapter.ts:210
movable?booleanWhether the title bar drags the window. Default true.WindowOptionsBase.movablewebxr-uiextensions/src/adapter.ts:203
pinnable?boolean-WindowOptionsBase.pinnablewebxr-uiextensions/src/adapter.ts:211
position?Vec3TupleWorld position for world-locked windows.WindowOptionsBase.positionwebxr-uiextensions/src/adapter.ts:198
region?stringDock straight into this region on spawn.WindowOptionsBase.regionwebxr-uiextensions/src/adapter.ts:226
title?stringTitle text written into the window chrome's title element.WindowOptionsBase.titlewebxr-uiextensions/src/adapter.ts:195