Skip to main content

Class: ComFrequencyFormat

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Framework/FmcFormats.ts:110

FmcFormat for parsing and displaying a com frequency Also accepts various shorthand formats. ex. 'xxx', 'xxxx', 'xxxxx', 'xxxxxx,'xxx.xxx', 'xxx.xx', 'xxx.x'

Implements​

Constructors​

Constructor​

new ComFrequencyFormat(): ComFrequencyFormat

Returns​

ComFrequencyFormat

Properties​

nullValueString​

nullValueString: string = '---.---'

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Framework/FmcFormats.ts:112

The string to show when a value is null

Implementation of​

Formatter.nullValueString

Methods​

format()​

format(freq): string

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Framework/FmcFormats.ts:115

Parameters​

ParameterType
freqnumber

Returns​

string

Inherit Doc​

Implementation of​

Formatter.format


parse()​

parse(input): Promise<number | null>

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Framework/FmcFormats.ts:120

Parameters​

ParameterType
inputstring

Returns​

Promise<number | null>

Inherit Doc​

Implementation of​

Validator.parse