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
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/CharInput/CharInputSlot.tsx:16
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
| ToggleableClassNameRecord
| 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/CharInput/CharInputSlot.tsx:34
defaultCharValue
• defaultCharValue: string
| Subscribable
<string
>
The default character value for the slot when the character value is null
.
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/CharInput/CharInputSlot.tsx:25
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
Name | Type |
---|---|
character | null | string |
index | number |
Returns
string
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/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
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/CharInput/CharInputSlot.tsx:22