Interface: SelectControl2Props<T>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControls2/SelectControl.tsx:10
The properties for the SelectControl component.
Extends
Type Parameters
| Type Parameter |
|---|
T |
Properties
children?
optionalchildren:DisplayChildren[]
Defined in: sdk/components/FSComponent.ts:122
The children of the display component.
Inherited from
class?
optionalclass:string
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControls2/SelectControl.tsx:74
CSS class(es) to apply to the root of the control.
data
data:
SubscribableArray<T>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControls2/SelectControl.tsx:40
The underlying data for this selection
dialogPosition?
optionaldialogPosition:ContextMenuPosition
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControls2/SelectControl.tsx:46
Defines the position where the context menu will appear. (Default: 'center')
dialogScrollStartIndex?
optionaldialogScrollStartIndex:Subscribable<number>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControls2/SelectControl.tsx:58
A subscribable which provides the index of the item to which to scroll when the selection dialog is opened. If not defined, the index of the currently selected item is used instead, or 0 if there is no selected item.
getFocusPositionOnScroll()?
optionalgetFocusPositionOnScroll: (direction) =>FocusPosition
Defined in: sdk/components/controls/HardwareUiControl.tsx:56
A function which returns how the control should focus its children when it is focused from a scroll.
Parameters
| Parameter | Type |
|---|---|
direction | ScrollDirection |
Returns
Inherited from
G1000UiControlProps.getFocusPositionOnScroll
innerKnobScroll?
optionalinnerKnobScroll:boolean
Defined in: sdk/components/controls/HardwareUiControl.tsx:32
Whether or not the inner FMS knob scrolls also by default.
Inherited from
G1000UiControlProps.innerKnobScroll
isolateScroll?
optionalisolateScroll:boolean
Defined in: sdk/components/controls/HardwareUiControl.tsx:38
When enabled, scroll commands will not propagate from this control to its parent while the control is focused.
Inherited from
G1000UiControlProps.isolateScroll
nullSelectionText?
optionalnullSelectionText:Subscribable<string>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControls2/SelectControl.tsx:52
A subscribable which provides text to display in the selected value area when there is no selected value. If not
defined, NONE will be displayed.
on0?
optionalon0:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
on1?
optionalon1:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
on2?
optionalon2:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
on3?
optionalon3:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
on4?
optionalon4:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
on5?
optionalon5:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
on6?
optionalon6:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
on7?
optionalon7:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
on8?
optionalon8:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
on9?
optionalon9:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onA?
optionalonA:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onAfterScroll()?
optionalonAfterScroll: (control,index) =>void
Defined in: sdk/components/controls/HardwareUiControl.tsx:62
An event called when the scroll operation has completed.
Parameters
| Parameter | Type |
|---|---|
control | HardwareUiControl |
index | number |
Returns
void
Inherited from
G1000UiControlProps.onAfterScroll
onB?
optionalonB:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onBKSP?
optionalonBKSP:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onBlurred()?
optionalonBlurred: (source) =>void
Defined in: sdk/components/controls/HardwareUiControl.tsx:47
An event called when the control loses focus.
Parameters
| Parameter | Type |
|---|---|
source | HardwareUiControl |
Returns
void
Inherited from
onC?
optionalonC:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onClr?
optionalonClr:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onClrLong?
optionalonClrLong:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onCom?
optionalonCom:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onCrs?
optionalonCrs:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onD?
optionalonD:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onDestroyed()?
optionalonDestroyed: (source) =>void
Defined in: sdk/components/controls/HardwareUiControl.tsx:71
An event called when the control is destroyed.
Parameters
| Parameter | Type |
|---|---|
source | HardwareUiControl |
Returns
void
Inherited from
G1000UiControlProps.onDestroyed
onDirectTo?
optionalonDirectTo:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onDirectTo
onDisabled()?
optionalonDisabled: (source) =>void
Defined in: sdk/components/controls/HardwareUiControl.tsx:50
An event called when the control is disabled.
Parameters
| Parameter | Type |
|---|---|
source | HardwareUiControl |
Returns
void
Inherited from
G1000UiControlProps.onDisabled
onDot?
optionalonDot:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onE?
optionalonE:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onEnabled()?
optionalonEnabled: (source) =>void
Defined in: sdk/components/controls/HardwareUiControl.tsx:53
An event called when the control is enabled.
Parameters
| Parameter | Type |
|---|---|
source | HardwareUiControl |
Returns
void
Inherited from
onEnter?
optionalonEnter:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onF?
optionalonF:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onFocused()?
optionalonFocused: (source) =>void
Defined in: sdk/components/controls/HardwareUiControl.tsx:44
An event called when the control is focused.
Parameters
| Parameter | Type |
|---|---|
source | HardwareUiControl |
Returns
void
Inherited from
onFPL?
optionalonFPL:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onG?
optionalonG:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onH?
optionalonH:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onHome?
optionalonHome:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onI?
optionalonI:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onInnerControlKnobDec?
optionalonInnerControlKnobDec:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onInnerControlKnobDec
onInnerControlKnobInc?
optionalonInnerControlKnobInc:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onInnerControlKnobInc
onInnerControlKnobPush?
optionalonInnerControlKnobPush:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onInnerControlKnobPush
onJ?
optionalonJ:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onJoystickDown?
optionalonJoystickDown:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onJoystickDown
onJoystickLeft?
optionalonJoystickLeft:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onJoystickLeft
onJoystickPush?
optionalonJoystickPush:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onJoystickPush
onJoystickRight?
optionalonJoystickRight:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onJoystickRight
onJoystickUp?
optionalonJoystickUp:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onJoystickUp
onK?
optionalonK:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onL?
optionalonL:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onLowerKnobDec?
optionalonLowerKnobDec:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onLowerKnobDec
onLowerKnobInc?
optionalonLowerKnobInc:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onLowerKnobInc
onM?
optionalonM:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onMenu?
optionalonMenu:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onN?
optionalonN:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onNav?
optionalonNav:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onO?
optionalonO:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onOuterControlKnobDec?
optionalonOuterControlKnobDec:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onOuterControlKnobDec
onOuterControlKnobInc?
optionalonOuterControlKnobInc:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onOuterControlKnobInc
onP?
optionalonP:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onPlusMinus?
optionalonPlusMinus:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onPlusMinus
onProc?
optionalonProc:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onQ?
optionalonQ:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onR?
optionalonR:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onRangeDec?
optionalonRangeDec:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onRangeDec
onRangeInc?
optionalonRangeInc:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onRangeInc
onRegistered()?
optionalonRegistered: (source) =>void
Defined in: sdk/components/controls/HardwareUiControl.tsx:65
An event called when a control is registered with this control.
Parameters
| Parameter | Type |
|---|---|
source | HardwareUiControl |
Returns
void
Inherited from
G1000UiControlProps.onRegistered
onS?
optionalonS:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onScroll()?
optionalonScroll: (direction) =>boolean
Defined in: sdk/components/controls/HardwareUiControl.tsx:59
An event called when the control is scrolled.
Parameters
| Parameter | Type |
|---|---|
direction | ScrollDirection |
Returns
boolean
Inherited from
onSelectionDialogClosed()?
optionalonSelectionDialogClosed: (source,selectionMade) =>void
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControls2/SelectControl.tsx:71
A function to be called when the selection dialog is closed.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | SelectControl2<T> | The SelectControl controlling the dialog that was closed. |
selectionMade | boolean | Whether a selection was made. |
Returns
void
onSelectionDialogOpened()?
optionalonSelectionDialogOpened: (source) =>void
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControls2/SelectControl.tsx:64
A function to be called when the selection dialog is opened.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | SelectControl2<T> | The SelectControl controlling the dialog that was opened. |
Returns
void
onSPC?
optionalonSPC:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onT?
optionalonT:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onU?
optionalonU:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onUnregistered()?
optionalonUnregistered: (source) =>void
Defined in: sdk/components/controls/HardwareUiControl.tsx:68
An event called when a control is unregistered with this control.
Parameters
| Parameter | Type |
|---|---|
source | HardwareUiControl |
Returns
void
Inherited from
G1000UiControlProps.onUnregistered
onUpperKnobDec?
optionalonUpperKnobDec:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onUpperKnobDec
onUpperKnobInc?
optionalonUpperKnobInc:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onUpperKnobInc
onUpperKnobPush?
optionalonUpperKnobPush:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
G1000UiControlProps.onUpperKnobPush
onV?
optionalonV:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onW?
optionalonW:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onX?
optionalonX:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onXpdr?
optionalonXpdr:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onY?
optionalonY:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
onZ?
optionalonZ:UiControlEventHandler<G1000UiControl<G1000UiControlProps>>
Inherited from
outerContainer
outerContainer:
NodeReference<HTMLElement>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControls2/SelectControl.tsx:43
The outer dialog container this control is in
reconcileChildBlur()?
optionalreconcileChildBlur: (index,child) =>number|BlurReconciliation
Defined in: sdk/components/controls/HardwareUiControl.tsx:80
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
| Parameter | Type | Description |
|---|---|---|
index | number | The index of the child control that was blurred. |
child | HardwareUiControl | The child control that was blurred. |
Returns
number | BlurReconciliation
The index of the child to focus, or a blur reconciliation strategy.
Inherited from
G1000UiControlProps.reconcileChildBlur
ref?
optionalref:NodeReference<any>
Defined in: sdk/components/FSComponent.ts:125
A reference to the display component.
Inherited from
requireChildFocus?
optionalrequireChildFocus:boolean
Defined in: sdk/components/controls/HardwareUiControl.tsx:41
Whether the control requires one of its child controls to be focused for itself to be focused.
Inherited from
G1000UiControlProps.requireChildFocus
viewService
viewService:
ViewService
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControls2/SelectControl.tsx:12
The view service to use to open the selection dialog.
Methods
buildMenuItem()
buildMenuItem(
item,index):ContextMenuItemDefinition
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControls2/SelectControl.tsx:28
A function which provides menu item definitions for items.
Parameters
| Parameter | Type | Description |
|---|---|---|
item | T | An item. |
index | number | The index of the item. |
Returns
a menu item definition for the item.
onItemSelected()
onItemSelected(
index,item,isRefresh):void
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControls2/SelectControl.tsx:20
A function to be called when an item is selected.
Parameters
| Parameter | Type | Description |
|---|---|---|
index | number | The index of the selected item. |
item | undefined | T | The item which was selected. |
isRefresh | boolean | Whether the item was selected as part of a refresh. |
Returns
void
renderSelectedItem()?
optionalrenderSelectedItem(item,index):VNode
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/UiControls2/SelectControl.tsx:37
A function which renders items for display in the selected item area. If not defined, the item's menu item definition will be used to render the item instead.
Parameters
| Parameter | Type | Description |
|---|---|---|
item | T | An item. |
index | number | The index of the item. |
Returns
the rendered item, as a VNode.