Skip to main content

Interface: CharInputSlotProps

Component props for CharInputSlot.

Hierarchy

  • ComponentProps

    CharInputSlotProps

Properties

charArray

charArray: readonly string[]

An array of valid character values for the slot. The order of characters in the array determines the order in which the slot will cycle through characters when incrementing/decrementing its value.

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Components/CharInput/CharInputSlot.tsx:16


children

Optional children: DisplayChildren[]

The children of the display component.

Inherited from

ComponentProps.children

Defined in

sdk/components/FSComponent.ts:122


class

Optional class: string | ToggleableClassNameRecord | SubscribableSet<string>

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

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Components/CharInput/CharInputSlot.tsx:34


defaultCharValue

defaultCharValue: string | Subscribable<string>

The default character value for the slot when the character value is null.

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Components/CharInput/CharInputSlot.tsx:25


ref

Optional ref: NodeReference<any>

A reference to the display component.

Inherited from

ComponentProps.ref

Defined in

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

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Components/CharInput/CharInputSlot.tsx:31


wrap

wrap: boolean | Subscribable<boolean>

Whether the slot should wrap from the last valid character to the first valid character and vice-versa when incrementing/decrementing its value.

Defined in

workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Components/CharInput/CharInputSlot.tsx:22