Skip to main content

Interface: HardwareUiControlProps

Properties on the UiControl2 component.

Hierarchy

Properties

children

Optional children: DisplayChildren[]

The children of the display component.

Inherited from

ComponentProps.children

Defined in

src/sdk/components/FSComponent.ts:122


getFocusPositionOnScroll

Optional getFocusPositionOnScroll: (direction: ScrollDirection) => FocusPosition

A function which returns how the control should focus its children when it is focused from a scroll.

Type declaration

▸ (direction): FocusPosition

A function which returns how the control should focus its children when it is focused from a scroll.

Parameters
NameType
directionScrollDirection
Returns

FocusPosition

Defined in

src/sdk/components/controls/HardwareUiControl.tsx:56


innerKnobScroll

Optional innerKnobScroll: boolean

Whether or not the inner FMS knob scrolls also by default.

Defined in

src/sdk/components/controls/HardwareUiControl.tsx:32


isolateScroll

Optional isolateScroll: boolean

When enabled, scroll commands will not propagate from this control to its parent while the control is focused.

Defined in

src/sdk/components/controls/HardwareUiControl.tsx:38


onAfterScroll

Optional onAfterScroll: (control: HardwareUiControl<Record<string, any>, HardwareUiControlProps>, index: number) => void

An event called when the scroll operation has completed.

Type declaration

▸ (control, index): void

An event called when the scroll operation has completed.

Parameters
NameType
controlHardwareUiControl<Record<string, any>, HardwareUiControlProps>
indexnumber
Returns

void

Defined in

src/sdk/components/controls/HardwareUiControl.tsx:62


onBlurred

Optional onBlurred: (source: HardwareUiControl<Record<string, any>, HardwareUiControlProps>) => void

An event called when the control loses focus.

Type declaration

▸ (source): void

An event called when the control loses focus.

Parameters
NameType
sourceHardwareUiControl<Record<string, any>, HardwareUiControlProps>
Returns

void

Defined in

src/sdk/components/controls/HardwareUiControl.tsx:47


onDestroyed

Optional onDestroyed: (source: HardwareUiControl<Record<string, any>, HardwareUiControlProps>) => void

An event called when the control is destroyed.

Type declaration

▸ (source): void

An event called when the control is destroyed.

Parameters
NameType
sourceHardwareUiControl<Record<string, any>, HardwareUiControlProps>
Returns

void

Defined in

src/sdk/components/controls/HardwareUiControl.tsx:71


onDisabled

Optional onDisabled: (source: HardwareUiControl<Record<string, any>, HardwareUiControlProps>) => void

An event called when the control is disabled.

Type declaration

▸ (source): void

An event called when the control is disabled.

Parameters
NameType
sourceHardwareUiControl<Record<string, any>, HardwareUiControlProps>
Returns

void

Defined in

src/sdk/components/controls/HardwareUiControl.tsx:50


onEnabled

Optional onEnabled: (source: HardwareUiControl<Record<string, any>, HardwareUiControlProps>) => void

An event called when the control is enabled.

Type declaration

▸ (source): void

An event called when the control is enabled.

Parameters
NameType
sourceHardwareUiControl<Record<string, any>, HardwareUiControlProps>
Returns

void

Defined in

src/sdk/components/controls/HardwareUiControl.tsx:53


onFocused

Optional onFocused: (source: HardwareUiControl<Record<string, any>, HardwareUiControlProps>) => void

An event called when the control is focused.

Type declaration

▸ (source): void

An event called when the control is focused.

Parameters
NameType
sourceHardwareUiControl<Record<string, any>, HardwareUiControlProps>
Returns

void

Defined in

src/sdk/components/controls/HardwareUiControl.tsx:44


onRegistered

Optional onRegistered: (source: HardwareUiControl<Record<string, any>, HardwareUiControlProps>) => void

An event called when a control is registered with this control.

Type declaration

▸ (source): void

An event called when a control is registered with this control.

Parameters
NameType
sourceHardwareUiControl<Record<string, any>, HardwareUiControlProps>
Returns

void

Defined in

src/sdk/components/controls/HardwareUiControl.tsx:65


onScroll

Optional onScroll: (direction: ScrollDirection) => boolean

An event called when the control is scrolled.

Type declaration

▸ (direction): boolean

An event called when the control is scrolled.

Parameters
NameType
directionScrollDirection
Returns

boolean

Defined in

src/sdk/components/controls/HardwareUiControl.tsx:59


onUnregistered

Optional onUnregistered: (source: HardwareUiControl<Record<string, any>, HardwareUiControlProps>) => void

An event called when a control is unregistered with this control.

Type declaration

▸ (source): void

An event called when a control is unregistered with this control.

Parameters
NameType
sourceHardwareUiControl<Record<string, any>, HardwareUiControlProps>
Returns

void

Defined in

src/sdk/components/controls/HardwareUiControl.tsx:68


reconcileChildBlur

Optional reconcileChildBlur: (index: number, child: HardwareUiControl<Record<string, any>, HardwareUiControlProps>) => number | BlurReconciliation

A function which reconciles the focus state of the control's children when the control is focused with no focused children after a child has been blurred.

Param

The index of the child control that was blurred.

Param

The child control that was blurred.

Type declaration

▸ (index, child): number | BlurReconciliation

A function which reconciles the focus state of the control's children when the control is focused with no focused children after a child has been blurred.

Parameters
NameTypeDescription
indexnumberThe index of the child control that was blurred.
childHardwareUiControl<Record<string, any>, HardwareUiControlProps>The child control that was blurred.
Returns

number | BlurReconciliation

The index of the child to focus, or a blur reconciliation strategy.

Defined in

src/sdk/components/controls/HardwareUiControl.tsx:80


ref

Optional ref: NodeReference<any>

A reference to the display component.

Inherited from

ComponentProps.ref

Defined in

src/sdk/components/FSComponent.ts:125


requireChildFocus

Optional requireChildFocus: boolean

Whether the control requires one of its child controls to be focused for itself to be focused.

Defined in

src/sdk/components/controls/HardwareUiControl.tsx:41