Skip to main content

Class: NavFrequencyFormat

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

FmcFormat for displaying a nav frequency

Accepts an XXX.YY string

Implements​

Constructors​

Constructor​

new NavFrequencyFormat(fms, index): NavFrequencyFormat

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

Constructs a FrequencyFormat

Parameters​

ParameterTypeDescription
fmsWT21Fmsthe FMS
index1 | 2which nav radio is this for

Returns​

NavFrequencyFormat

Properties​

nullValueString​

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

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

The string to show when a value is null

Implementation of​

Formatter.nullValueString

Methods​

format()​

format(value): string

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

Formats a value of a type into a string

Parameters​

ParameterTypeDescription
valueFreqModethe value to format

Returns​

string

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:58

Parameters​

ParameterType
inputstring

Returns​

Promise<number | null>

Inherit Doc​

Implementation of​

Validator.parse