Skip to main content

Abstract Class: AbstractSimpleUiNumberDialog<Input, Output, P>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractSimpleUiNumberDialog.tsx:13

An abstract implementation of a UI dialog view that allows the user to select an arbitrary numeric value. The dialog includes a 0-9 number pad and backspace button by default. It is up to subclasses to render the number input component. Subclasses may also choose to render additional dialog content.

Extends

Extended by

Type Parameters

Type ParameterDefault type
Input extends UiNumberDialogInputUiNumberDialogInput
Outputnumber
P extends UiViewPropsUiViewProps

Constructors

Constructor

new AbstractSimpleUiNumberDialog<Input, Output, P>(props): AbstractSimpleUiNumberDialog<Input, Output, P>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractSimpleUiNumberDialog.tsx:27

Parameters

ParameterType
propsP

Returns

AbstractSimpleUiNumberDialog<Input, Output, P>

Inherit Doc

Overrides

AbstractUiNumberDialog.constructor

Properties

_knobLabelState

protected readonly _knobLabelState: FilteredMapSubject<UiKnobId, string>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/AbstractUiView.ts:13

Inherited from

AbstractUiNumberDialog._knobLabelState


activeInputDef?

protected optional activeInputDef: UiNumberDialogInputDefinition

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:80

Inherited from

AbstractUiNumberDialog.activeInputDef


backButtonImgSrc

protected readonly backButtonImgSrc: Subject<string>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:76

Inherited from

AbstractUiNumberDialog.backButtonImgSrc


backButtonLabel

protected readonly backButtonLabel: Subject<string>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:75

Inherited from

AbstractUiNumberDialog.backButtonLabel


backRef

protected readonly backRef: NodeReference<ImgTouchButton>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:69

Inherited from

AbstractUiNumberDialog.backRef


backspaceRef

protected readonly backspaceRef: NodeReference<ImgTouchButton>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:68

Inherited from

AbstractUiNumberDialog.backspaceRef


context?

optional context: [] = undefined

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

The context on this component, if any.

Inherited from

AbstractUiNumberDialog.context


contextType?

readonly optional contextType: readonly [] = undefined

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

The type of context for this component, if any.

Inherited from

AbstractUiNumberDialog.contextType


enterRef

protected readonly enterRef: NodeReference<ImgTouchButton>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:70

Inherited from

AbstractUiNumberDialog.enterRef


focusController

protected readonly focusController: UiFocusController

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/AbstractUiView.ts:17

Inherited from

AbstractUiNumberDialog.focusController


inputContainerRef

protected readonly inputContainerRef: NodeReference<HTMLDivElement>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:66

Inherited from

AbstractUiNumberDialog.inputContainerRef


inputDefinitions

protected readonly inputDefinitions: Map<string, UiNumberDialogInputDefinition>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:78

Inherited from

AbstractUiNumberDialog.inputDefinitions


inputRef

protected readonly inputRef: NodeReference<NumberInput>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractSimpleUiNumberDialog.tsx:21


isAlive

protected isAlive: boolean = true

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:87

Inherited from

AbstractUiNumberDialog.isAlive


isEnterButtonEnabled

protected readonly isEnterButtonEnabled: Subject<boolean>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:96

Whether the enter button is enabled.

Inherited from

AbstractUiNumberDialog.isEnterButtonEnabled


knobLabelState

readonly knobLabelState: SubscribableMap<UiKnobId, string> & Subscribable<UiKnobRequestedLabelState>

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

The bezel rotary knob label state requested by this view.

Inherited from

AbstractUiNumberDialog.knobLabelState


numpadRef

protected readonly numpadRef: NodeReference<NumberPad>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:67

Inherited from

AbstractUiNumberDialog.numpadRef


props

props: P & ComponentProps

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

The properties of the component.

Inherited from

AbstractUiNumberDialog.props


resolveFunction()?

protected optional resolveFunction: (value) => void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:82

Parameters

ParameterType
valueany

Returns

void

Inherited from

AbstractUiNumberDialog.resolveFunction


resultObject

protected resultObject: UiDialogResult<Output>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:83

Inherited from

AbstractUiNumberDialog.resultObject


rootCssClass

protected readonly rootCssClass: SetSubject<string>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:71

Inherited from

AbstractUiNumberDialog.rootCssClass


showDecimalButton

protected readonly showDecimalButton: Subject<boolean>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:93

Whether the decimal button is shown. Defaults to false.

Inherited from

AbstractUiNumberDialog.showDecimalButton


showSignButton

protected readonly showSignButton: Subject<boolean>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:90

Whether the sign button is shown. Defaults to false.

Inherited from

AbstractUiNumberDialog.showSignButton


title

protected readonly title: Subject<string>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:73

Inherited from

AbstractUiNumberDialog.title


value

protected readonly value: Subject<number>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractSimpleUiNumberDialog.tsx:24

This dialog's current selected value.

Methods

cleanupRequest()

protected cleanupRequest(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:326

Clears this dialog's pending request and fulfills the pending request Promise if one exists.

Returns

void

Inherited from

AbstractUiNumberDialog.cleanupRequest


createFocusController()

protected createFocusController(): UiFocusController

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/AbstractUiView.ts:23

Creates a new focus controller for this view.

Returns

UiFocusController

A new focus controller.

Inherited from

AbstractUiNumberDialog.createFocusController


destroy()

destroy(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:522

Destroys this component.

Returns

void

Inherited from

AbstractUiNumberDialog.destroy


getContext()

protected getContext(context): never

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

Gets a context data subscription from the context collection.

Parameters

ParameterTypeDescription
contextneverThe context to get the subscription for.

Returns

never

The requested context.

Throws

An error if no data for the specified context type could be found.

Inherited from

AbstractUiNumberDialog.getContext


getInvalidValueMessage()

abstract protected getInvalidValueMessage(value, activeInputDef): string | VNode

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:304

Gets the message to display when attempting to return an invalid value.

Parameters

ParameterTypeDescription
valuenumberThe invalid value.
activeInputDefUiNumberDialogInputDefinitionThe input definition used to generate the invalid value.

Returns

string | VNode

The message to display when attempting to return an invalid value.

Inherited from

AbstractUiNumberDialog.getInvalidValueMessage


getInvalidValueMessageDialogLayerAndKey()

protected getInvalidValueMessageDialogLayerAndKey(): [UiViewStackLayer, string]

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:319

Gets the view stack layer and key of the message dialog to open to display the invalid value message.

Returns

[UiViewStackLayer, string]

The view stack layer and key of the message dialog to open to display the invalid value message, as [layer, key].

Inherited from

AbstractUiNumberDialog.getInvalidValueMessageDialogLayerAndKey


getPayload()

abstract protected getPayload(value, activeInputDef): Output

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:312

Gets the payload for a completed request.

Parameters

ParameterTypeDescription
valuenumberThe numeric value to return with the request.
activeInputDefUiNumberDialogInputDefinitionThe active input definition at the time the request was completed.

Returns

Output

The payload for a completed request.

Inherited from

AbstractUiNumberDialog.getPayload


getRootCssClassName()

abstract protected getRootCssClassName(): undefined | string

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:420

Gets the CSS class name (singular) for this dialog's root element.

Returns

undefined | string

The CSS class name (singular) for this dialog's root element.

Inherited from

AbstractUiNumberDialog.getRootCssClassName


isValueValid()

abstract protected isValueValid(value, activeInputDef): boolean

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:296

Checks if a value is valid to be returned for a request.

Parameters

ParameterTypeDescription
valuenumberThe value to check.
activeInputDefUiNumberDialogInputDefinitionThe input definition used to generate the value to check.

Returns

boolean

Whether the specified value is valid to be returned for a request.

Inherited from

AbstractUiNumberDialog.isValueValid


onAfterRender()

onAfterRender(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:116

A callback that is called after the component is rendered.

Returns

void

Inherited from

AbstractUiNumberDialog.onAfterRender


onBackPressed()

protected onBackPressed(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:376

Responds to when this dialog's back/cancel button is pressed.

Returns

void

Inherited from

AbstractUiNumberDialog.onBackPressed


onBackspacePressed()

protected onBackspacePressed(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:369

Responds to when this dialog's backspace button is pressed.

Returns

void

Inherited from

AbstractUiNumberDialog.onBackspacePressed


onBeforeRender()

onBeforeRender(): void

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

A callback that is called before the component is rendered.

Returns

void

Inherited from

AbstractUiNumberDialog.onBeforeRender


onCleanupRequest()

protected onCleanupRequest(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:340

A callback method which is called when this dialog cleans up a request. This method is called before the pending request Promise is fulfilled, if one exists.

Returns

void

Inherited from

AbstractUiNumberDialog.onCleanupRequest


onClose()

onClose(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:220

Responds to when this view is closed.

Returns

void

Inherited from

AbstractUiNumberDialog.onClose


onDecimalPressed()

protected onDecimalPressed(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:362

Called when this dialog's decimal button is pressed.

Returns

void

Inherited from

AbstractUiNumberDialog.onDecimalPressed


onEditingActiveChanged()

protected onEditingActiveChanged(isEditingActive, activeInputDef): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:140

Responds to when the editing state of this dialog's active number input changes.

Parameters

ParameterTypeDescription
isEditingActivebooleanWhether editing is active.
activeInputDefUiNumberDialogInputDefinitionThe active input definition.

Returns

void

Inherited from

AbstractUiNumberDialog.onEditingActiveChanged


onEnterPressed()

protected onEnterPressed(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:383

Responds to when this dialog's enter button is pressed.

Returns

void

Inherited from

AbstractUiNumberDialog.onEnterPressed


onNumberPressed()

protected onNumberPressed(value): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:348

Responds to when one of this dialog's number pad buttons is pressed.

Parameters

ParameterTypeDescription
valuenumberThe value of the button that was pressed.

Returns

void

Inherited from

AbstractUiNumberDialog.onNumberPressed


onOcclusionChange()

onOcclusionChange(occlusionType): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/AbstractUiView.ts:56

Responds to when the occlusion type applied to this view changes while this view is open.

Parameters

ParameterTypeDescription
occlusionTypeUiViewOcclusionTypeThe new occlusion type applied to this view.

Returns

void

Inherited from

AbstractUiNumberDialog.onOcclusionChange


onOpen()

onOpen(sizeMode, dimensions): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/AbstractUiView.ts:29

Responds to when this view is opened.

Parameters

ParameterTypeDescription
sizeModeUiViewSizeModeThe new size mode of this view's container.
dimensionsReadonlyFloat64ArrayThe new dimensions of this view's container, as [width, height] in pixels.

Returns

void

Inherited from

AbstractUiNumberDialog.onOpen


onPause()

onPause(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/AbstractUiView.ts:44

Responds to when this view is paused.

Returns

void

Inherited from

AbstractUiNumberDialog.onPause


onRequest()

protected onRequest(input): number

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractSimpleUiNumberDialog.tsx:63

A callback method which is called when this dialog receives a request.

Parameters

ParameterTypeDescription
inputInputThe input for the request.

Returns

number

The initial numeric value to load into this dialog's number input.

Overrides

AbstractUiNumberDialog.onRequest


onResize()

onResize(sizeMode, dimensions): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/AbstractUiView.ts:50

Responds when this view's container is resized while it is open.

Parameters

ParameterTypeDescription
sizeModeUiViewSizeModeThe new size mode of this view's container.
dimensionsReadonlyFloat64ArrayThe new dimensions of this view's container, as [width, height] in pixels.

Returns

void

Inherited from

AbstractUiNumberDialog.onResize


onResume()

onResume(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:225

Responds to when this view is resumed.

Returns

void

Inherited from

AbstractUiNumberDialog.onResume


onSignPressed()

protected onSignPressed(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:355

Called when this dialog's sign button is pressed.

Returns

void

Inherited from

AbstractUiNumberDialog.onSignPressed


onUiInteractionEvent()

onUiInteractionEvent(event): boolean

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:230

Handles a UiInteractionEvent.

Parameters

ParameterTypeDescription
eventUiInteractionEventThe event to handle.

Returns

boolean

Whether the event was handled.

Inherited from

AbstractUiNumberDialog.onUiInteractionEvent


onUpdate()

onUpdate(time): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/UiSystem/AbstractUiView.ts:62

Called every update cycle.

Parameters

ParameterTypeDescription
timenumberThe current real (operating system) time, as a Javascript timestamp.

Returns

void

Inherited from

AbstractUiNumberDialog.onUpdate


registerInputDefinition()

protected registerInputDefinition(key, def): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:105

Registers an input definition with this dialog. Definitions must be registered before they are requested as the active input in order to function properly.

Parameters

ParameterTypeDescription
keystringThe key to register the definition under. If an existing definition is already registered under the same key, it will be replaced.
defUiNumberDialogInputDefinitionThe definition to register.

Returns

void

Inherited from

AbstractUiNumberDialog.registerInputDefinition


render()

render(): VNode

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:388

Renders the component.

Returns

VNode

A JSX element to be rendered.

Inherited from

AbstractUiNumberDialog.render


renderBackButton()

protected renderBackButton(ref, rootCssClassName): null | VNode

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:477

Renders this dialog's back/cancel button.

Parameters

ParameterTypeDescription
refNodeReference<DisplayComponent<any, []>>The reference to which to assign the rendered button.
rootCssClassNameundefined | stringThe CSS class name for this dialog's root element.

Returns

null | VNode

This dialog's back/cancel button, as a VNode, or null if this dialog does not have a backspace button.

Inherited from

AbstractUiNumberDialog.renderBackButton


renderBackspaceButton()

protected renderBackspaceButton(ref, rootCssClassName): null | VNode

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:459

Renders this dialog's backspace button.

Parameters

ParameterTypeDescription
refNodeReference<DisplayComponent<any, []>>The reference to which to assign the rendered button.
rootCssClassNameundefined | stringThe CSS class name for this dialog's root element.

Returns

null | VNode

This dialog's backspace button, as a VNode, or null if this dialog does not have a backspace button.

Inherited from

AbstractUiNumberDialog.renderBackspaceButton


renderEnterButton()

protected renderEnterButton(ref, rootCssClassName): null | VNode

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:496

Renders this dialog's enter button.

Parameters

ParameterTypeDescription
refNodeReference<DisplayComponent<any, []>>The reference to which to assign the rendered button.
rootCssClassNameundefined | stringThe CSS class name for this dialog's root element.

Returns

null | VNode

This dialog's enter button, as a VNode, or null if this dialog does not have a backspace button.

Inherited from

AbstractUiNumberDialog.renderEnterButton


renderInput()

abstract protected renderInput(ref, valueToBind, rootCssClassName): VNode

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractSimpleUiNumberDialog.tsx:74

Renders this dialog's number input.

Parameters

ParameterTypeDescription
refNodeReference<NumberInput>The reference to which to assign the rendered input.
valueToBindMutableSubscribable<number>The value to bind to the input.
rootCssClassNameundefined | stringThe CSS class name for this dialog's root element.

Returns

VNode

This dialog's number input, as a VNode.


renderInputToContainer()

protected renderInputToContainer(def): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:209

Renders one of this dialog's registered inputs to the input container.

Parameters

ParameterTypeDescription
defUiNumberDialogInputDefinitionThe definition for the input to render.

Returns

void

Inherited from

AbstractUiNumberDialog.renderInputToContainer


renderNumberPad()

protected renderNumberPad(ref, rootCssClassName): VNode

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:428

Renders this dialog's number pad.

Parameters

ParameterTypeDescription
refNodeReference<NumberPad>The reference to which to assign the rendered number pad.
rootCssClassNameundefined | stringThe CSS class name for this dialog's root element.

Returns

VNode

This dialog's number pad, as a VNode.

Inherited from

AbstractUiNumberDialog.renderNumberPad


renderOtherContents()

protected renderOtherContents(rootCssClassName): null | VNode

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:517

Renders additional contents in this dialog's root container.

Parameters

ParameterTypeDescription
rootCssClassNameundefined | stringThe CSS class name for this dialog's root element.

Returns

null | VNode

Additional contents in this dialog's root container, as a VNode, or null if there are no additional contents.

Inherited from

AbstractUiNumberDialog.renderOtherContents


renderOtherNumberPadContents()

protected renderOtherNumberPadContents(rootCssClassName): null | VNode

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:449

Renders additional contents in this dialog's number pad container.

Parameters

ParameterTypeDescription
rootCssClassNameundefined | stringThe CSS class name for this dialog's root element.

Returns

null | VNode

Additional contents in this dialog's number pad container, as a VNode, or null if there are no additional contents.

Inherited from

AbstractUiNumberDialog.renderOtherNumberPadContents


request()

request(input): Promise<UiDialogResult<Output>>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractSimpleUiNumberDialog.tsx:39

Requests a value from this dialog.

Parameters

ParameterTypeDescription
inputInputInput parameters defining the request.

Returns

Promise<UiDialogResult<Output>>

A Promise which is fulfilled with the result of the request. The result will indicate whether the request was cancelled, and if the request was not cancelled, it will also contain the requested value.

Overrides

AbstractUiNumberDialog.request


resetActiveInput()

protected resetActiveInput(key?, initialValue?, resetEditing?): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:178

Resets the active input.

Parameters

ParameterTypeDefault valueDescription
key?stringundefinedThe key of the input to set as the active input. Defaults to the key of the current active input.
initialValue?numberundefinedThe initial value to set on the new active input. If not defined, the new active input will retain its current value.
resetEditing?booleanfalseWhether to reset the editing state of this dialog, in effect resetting the Back/Cancel button on the button bar to Back. Defaults to false.

Returns

void

Inherited from

AbstractUiNumberDialog.resetActiveInput


setBackButtonStyle()

protected setBackButtonStyle(style): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:124

Sets the style of this dialog's back/cancel button.

Parameters

ParameterTypeDescription
style"cancel" | "back"The style to set.

Returns

void

Inherited from

AbstractUiNumberDialog.setBackButtonStyle


validateValueAndClose()

protected validateValueAndClose(): Promise<void>

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/MFD/Dialogs/AbstractUiNumberDialog.tsx:261

Validates the currently selected value, and if valid sets the value to be returned for the currently pending request and closes this dialog.

Returns

Promise<void>

Inherited from

AbstractUiNumberDialog.validateValueAndClose