Skip to main content

Class: ChannelInputSlot

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/FrequencyInput/ChannelInputSlot.tsx:25

A cursor input slot which allows the user to select a radio frequency channel.

Extends

Constructors

Constructor

new ChannelInputSlot(props): ChannelInputSlot

Defined in: sdk/components/FSComponent.ts:73

Creates an instance of a DisplayComponent.

Parameters

ParameterTypeDescription
propsChannelInputSlotPropsThe propertis of the component.

Returns

ChannelInputSlot

Inherited from

DisplayComponent<ChannelInputSlotProps>.constructor

Properties

channelCount

readonly channelCount: number

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/FrequencyInput/ChannelInputSlot.tsx:82

The number of unique channels supported by this slot.


context?

optional context: [] = undefined

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

The context on this component, if any.

Inherited from

DisplayComponent.context


contextType?

readonly optional contextType: readonly [] = undefined

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

The type of context for this component, if any.

Inherited from

DisplayComponent.contextType


frequency

readonly frequency: Subscribable<number>

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/FrequencyInput/ChannelInputSlot.tsx:92

The frequency associated with this slot's channel value.


props

props: ChannelInputSlotProps & ComponentProps

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

The properties of the component.

Inherited from

DisplayComponent.props

Accessors

value

Get Signature

get value(): Subscribable<number>

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/FrequencyInput/ChannelInputSlot.tsx:86

This slot's channel value.

Returns

Subscribable<number>

Methods

decrementValue()

decrementValue(): boolean

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/FrequencyInput/ChannelInputSlot.tsx:150

Decrements this slot's value.

Returns

boolean

Whether the decrement operation was accepted.


destroy()

destroy(): void

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/FrequencyInput/ChannelInputSlot.tsx:366

Returns

void

Inherit Doc

Overrides

DisplayComponent.destroy


getContext()

protected getContext(context): never

Defined in: 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

DisplayComponent.getContext


incrementValue()

incrementValue(): boolean

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/FrequencyInput/ChannelInputSlot.tsx:142

Increments this slot's value.

Returns

boolean

Whether the increment operation was accepted.


onAfterRender()

onAfterRender(): void

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/FrequencyInput/ChannelInputSlot.tsx:95

Returns

void

Inherit Doc

Overrides

DisplayComponent.onAfterRender


onBeforeRender()

onBeforeRender(): void

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

A callback that is called before the component is rendered.

Returns

void

Inherited from

DisplayComponent.onBeforeRender


populateCharsFromValue()

populateCharsFromValue(): void

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/FrequencyInput/ChannelInputSlot.tsx:169

Populates all of this slot's characters with non-empty values, if possible, using this slot's current value as a template.

Returns

void


render()

render(): VNode

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/FrequencyInput/ChannelInputSlot.tsx:347

Returns

VNode

Inherit Doc

Overrides

DisplayComponent.render


setChar()

setChar(index, char, force?): boolean

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/FrequencyInput/ChannelInputSlot.tsx:161

Sets the value of one of this slot's characters.

Parameters

ParameterTypeDescription
indexnumberThe index of the character to set.
charnull | stringThe value to set.
force?booleanWhether to force the character to accept a value that would normally be invalid. Defaults to false.

Returns

boolean

Whether the operation was accepted.


setFrequency()

setFrequency(freq): number

Defined in: workingtitle-instruments-g3000/html_ui/GTC/Components/FrequencyInput/ChannelInputSlot.tsx:121

Sets the frequency 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 slot value, if possible. The frequency 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

ParameterTypeDescription
freqnumberThe new frequency value, in hertz.

Returns

number

The frequency value of this slot after the operation is complete.