Class: DigitInputSlot
A cursor input slot which allows the user to select a numeric digit. Digits are integers, but are not necessarily constrained to be in the range [0, 9].
Hierarchy
DisplayComponent
<DigitInputSlotProps
>↳
DigitInputSlot
Constructors
constructor
• new DigitInputSlot(props
): DigitInputSlot
Creates an instance of a DisplayComponent.
Parameters
Name | Type | Description |
---|---|---|
props | DigitInputSlotProps | The propertis of the component. |
Returns
Inherited from
DisplayComponent<DigitInputSlotProps>.constructor
Defined in
sdk/components/FSComponent.ts:73
Properties
context
• Optional
context: [] = undefined
The context on this component, if any.
Inherited from
DisplayComponent.context
Defined in
sdk/components/FSComponent.ts:64
contextType
• Optional
Readonly
contextType: readonly [] = undefined
The type of context for this component, if any.
Inherited from
DisplayComponent.contextType
Defined in
sdk/components/FSComponent.ts:67
props
• props: DigitInputSlotProps
& ComponentProps
The properties of the component.
Inherited from
DisplayComponent.props
Defined in
sdk/components/FSComponent.ts:61
Accessors
value
• get
value(): Subscribable
<number
>
The value bound to this slot.
Returns
Subscribable
<number
>
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Components/NumberInput/DigitInputSlot.tsx:137
Methods
decrementValue
▸ decrementValue(): boolean
Decrements this slot's value.
Returns
boolean
Whether the decrement operation was accepted.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Components/NumberInput/DigitInputSlot.tsx:190
destroy
▸ destroy(): void
Returns
void
Inherit Doc
Overrides
DisplayComponent.destroy
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Components/NumberInput/DigitInputSlot.tsx:333
getContext
▸ getContext(context
): never
Gets a context data subscription from the context collection.
Parameters
Name | Type | Description |
---|---|---|
context | never | The 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
DisplayComponent.getContext
Defined in
sdk/components/FSComponent.ts:106
incrementValue
▸ incrementValue(): boolean
Increments this slot's value.
Returns
boolean
Whether the increment operation was accepted.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Components/NumberInput/DigitInputSlot.tsx:182
onAfterRender
▸ onAfterRender(): void
Returns
void
Inherit Doc
Overrides
DisplayComponent.onAfterRender
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Components/NumberInput/DigitInputSlot.tsx:147
onBeforeRender
▸ onBeforeRender(): void
A callback that is called before the component is rendered.
Returns
void
Inherited from
DisplayComponent.onBeforeRender
Defined in
sdk/components/FSComponent.ts:80
render
▸ render(): VNode
Returns
VNode
Inherit Doc
Overrides
DisplayComponent.render
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Components/NumberInput/DigitInputSlot.tsx:301
setChar
▸ setChar(index
, char
, force?
): boolean
Sets the value of one of this slot's characters.
Parameters
Name | Type | Description |
---|---|---|
index | number | The index of the character to set. |
char | null | string | The value to set. |
force? | boolean | Whether to force the character to accept a value that would normally be invalid. Defaults to false . |
Returns
boolean
Whether the operation was accepted.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Components/NumberInput/DigitInputSlot.tsx:201
setUnscaledValue
▸ setUnscaledValue(unscaled
): number
Sets the unscaled value of this slot. The unscaled value of this slot after the operation is complete may be different from the requested value, depending on whether this slot can accurately represent the requested value.
Parameters
Name | Type | Description |
---|---|---|
unscaled | number | The new unscaled value. |
Returns
number
The new unscaled value of this slot after the operation is complete.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Components/NumberInput/DigitInputSlot.tsx:174
setValue
▸ setValue(value
): number
Sets the value of this slot. As part of the operation, all of this slot's characters will be set to non-null representations of the new value, if possible. The value of this slot after the operation is complete may differ from the requested value depending on whether the requested value can be accurately represented by this slot.
Parameters
Name | Type | Description |
---|---|---|
value | number | The new value. |
Returns
number
The value of this slot after the operation is complete.
Defined in
workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/GTC/Components/NumberInput/DigitInputSlot.tsx:164