Skip to main content

Interface: DigitInputSlotProps

Component props for DigitInputSlot.

Hierarchy

  • ComponentProps

    DigitInputSlotProps

Properties

allowBackfill

Optional allowBackfill: boolean | Subscribable<boolean>

Whether the slot supports backfill operations. Defaults to true.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/NumberInput/DigitInputSlot.tsx:11


characterCount

characterCount: number

The number of characters in the slot.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/NumberInput/DigitInputSlot.tsx:14


children

Optional children: DisplayChildren[]

The children of the display component.

Inherited from

ComponentProps.children

Defined in

src/sdk/components/FSComponent.ts:122


class

Optional class: string | SubscribableSet<string>

CSS class(es) to apply to the slot's root element.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/NumberInput/DigitInputSlot.tsx:71


defaultCharValues

defaultCharValues: readonly number[] | Subscribable<readonly number[]>

The default numeric values for each of the slot's character positions when the character value is null.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/NumberInput/DigitInputSlot.tsx:40


digitizeValue

Optional digitizeValue: (value: number, setCharacters: readonly (char: null | string) => void[], characters: readonly (null | string)[]) => void

A function which assigns values to individual characters from a slot value. If not defined, values will be digitized according to their standard base-10 string representations, with each character assigned to exactly one base-10 digit ("0" through "9") in right-to-left order (the last character is assigned to the right-most digit, the second-to-last character to the second right-most digit, etc, until there are no more characters or digits).

Param

A slot value.

Param

An array of functions which set the values of the slot's character values. The order of the functions is the same as order of their associated characters in the slot (from left to right).

Param

An array containing the slot's current character values. The order of the values is the same as the order of the characters in the slot (from left to right).

Type declaration

▸ (value, setCharacters, characters): void

A function which assigns values to individual characters from a slot value. If not defined, values will be digitized according to their standard base-10 string representations, with each character assigned to exactly one base-10 digit ("0" through "9") in right-to-left order (the last character is assigned to the right-most digit, the second-to-last character to the second right-most digit, etc, until there are no more characters or digits).

Parameters
NameTypeDescription
valuenumberA slot value.
setCharactersreadonly (char: null | string) => void[]An array of functions which set the values of the slot's character values. The order of the functions is the same as order of their associated characters in the slot (from left to right).
charactersreadonly (null | string)[]An array containing the slot's current character values. The order of the values is the same as the order of the characters in the slot (from left to right).
Returns

void

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/NumberInput/DigitInputSlot.tsx:62


increment

increment: number | Subscribable<number>

The amount to increment/decrement the input's un-scaled value when the inner FMS knob is scrolled, or a subscribable which provides it.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/NumberInput/DigitInputSlot.tsx:26


maxValue

maxValue: number | Subscribable<number>

The maximum un-scaled value of the input (exclusive if wrap is true), or a subscribable which provides it.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/NumberInput/DigitInputSlot.tsx:20


minValue

minValue: number | Subscribable<number>

The minimum un-scaled value of the input, or a subscribable which provides it.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/NumberInput/DigitInputSlot.tsx:17


parseValue

Optional parseValue: (characters: readonly (null | string)[]) => number

A function which parses a slot value from individual character values. If not defined, characters will be parsed as standard base-10 integers.

Param

An array of character values. The order of the values is the same as the order of the characters in the slot (from left to right).

Type declaration

▸ (characters): number

A function which parses a slot value from individual character values. If not defined, characters will be parsed as standard base-10 integers.

Parameters
NameTypeDescription
charactersreadonly (null | string)[]An array of character values. The order of the values is the same as the order of the characters in the slot (from left to right).
Returns

number

The slot value parsed from the specified character values.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/NumberInput/DigitInputSlot.tsx:49


ref

Optional ref: NodeReference<any>

A reference to the display component.

Inherited from

ComponentProps.ref

Defined in

src/sdk/components/FSComponent.ts:125


renderChar

Optional renderChar: (character: null | string, index: number) => string

A function which renders slot characters into string. If not defined, non-null characters will be rendered as-is, and null characters will be rendered according to the default value assigned to that character.

Type declaration

▸ (character, index): string

A function which renders slot characters into string. If not defined, non-null characters will be rendered as-is, and null characters will be rendered according to the default value assigned to that character.

Parameters
NameType
characternull | string
indexnumber
Returns

string

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/NumberInput/DigitInputSlot.tsx:68


scale

scale: number | Subscribable<number>

The scaling factor applied to this input's value, or a subscribable which provides it. The scaling factor determines the relationship between this input's bound data value and the displayed value as follows: data_value = display_value * scale. When the scaling factor changes, this input's displayed value is preserved, and the bound data value is changed to reflect the new scaling factor.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/NumberInput/DigitInputSlot.tsx:37


wrap

wrap: boolean | Subscribable<boolean>

Whether the input should wrap from the max value to the min value, or a subscribable which provides it.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/NumberInput/DigitInputSlot.tsx:29