Skip to main content

Interface: GenericUiViewProps

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/GenericUiView.tsx:24

Component props for GenericUiView.

Extends​

Properties​

children?​

optional children: DisplayChildren[]

Defined in: src/sdk/components/FSComponent.ts:122

The children of the display component.

Inherited from​

UiViewProps.children


containerRef​

containerRef: NodeReference<HTMLElement>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/UiView.ts:18

A reference to the root element of the view's container.

Inherited from​

UiViewProps.containerRef


createFocusController()?​

optional createFocusController: () => UiFocusController

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/GenericUiView.tsx:29

A function which creates the view's UI focus controller. If not defined, then a default focus controller will be created.

Returns​

UiFocusController


onAfterRender()?​

optional onAfterRender: (thisNode, members) => void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/GenericUiView.tsx:32

A function which is called after the view is rendered.

Parameters​

ParameterType
thisNodeVNode
membersGenericUiViewMembers

Returns​

void


onClose()?​

optional onClose: (members) => void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/GenericUiView.tsx:38

A function which is called when the view is closed.

Parameters​

ParameterType
membersGenericUiViewMembers

Returns​

void


onDestroy()?​

optional onDestroy: () => void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/GenericUiView.tsx:62

A function which is called when the view is destroyed.

Returns​

void


onOcclusionChange()?​

optional onOcclusionChange: (occlusionType, members) => void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/GenericUiView.tsx:50

A function which is called when the occlusion type applied to the view changes while the view is open.

Parameters​

ParameterType
occlusionTypeUiViewOcclusionType
membersGenericUiViewMembers

Returns​

void


onOpen()?​

optional onOpen: (sizeMode, dimensions, members) => void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/GenericUiView.tsx:35

A function which is called when the view is opened.

Parameters​

ParameterType
sizeModeUiViewSizeMode
dimensionsReadonlyFloat64Array
membersGenericUiViewMembers

Returns​

void


onPause()?​

optional onPause: (members) => void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/GenericUiView.tsx:44

A function which is called when the view is paused.

Parameters​

ParameterType
membersGenericUiViewMembers

Returns​

void


onResize()?​

optional onResize: (sizeMode, dimensions, members) => void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/GenericUiView.tsx:47

A function which is called when the view is resized while it is open.

Parameters​

ParameterType
sizeModeUiViewSizeMode
dimensionsReadonlyFloat64Array
membersGenericUiViewMembers

Returns​

void


onResume()?​

optional onResume: (members) => void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/GenericUiView.tsx:41

A function which is called when the view is resumed.

Parameters​

ParameterType
membersGenericUiViewMembers

Returns​

void


onUiInteractionEvent()?​

optional onUiInteractionEvent: (event, members) => boolean

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/GenericUiView.tsx:59

A function which handles interaction events routed to the view. If not defined, then the view will delegate interaction event handling to its UI focus controller.

Parameters​

ParameterType
eventUiInteractionEvent
membersGenericUiViewMembers

Returns​

boolean


onUpdate()?​

optional onUpdate: (time, members) => void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/GenericUiView.tsx:53

A function which is called every update cycle.

Parameters​

ParameterType
timenumber
membersGenericUiViewMembers

Returns​

void


ref?​

optional ref: NodeReference<any>

Defined in: src/sdk/components/FSComponent.ts:125

A reference to the display component.

Inherited from​

UiViewProps.ref


uiService​

uiService: UiService

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/UiView.ts:15

The UI service instance.

Inherited from​

UiViewProps.uiService