Skip to main content

Class: NavFrequencyFormat

FmcFormat for displaying a nav frequency

Accepts an XXX.YY string

Implements

  • Validator<number>
  • Formatter<FreqMode>

Constructors

constructor

new NavFrequencyFormat(fms, index): NavFrequencyFormat

Constructs a FrequencyFormat

Parameters

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

Returns

NavFrequencyFormat

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:43

Properties

nullValueString

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

Implementation of

Formatter.nullValueString

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:45

Methods

format

format(«destructured»): string

Parameters

NameType
«destructured»FreqMode

Returns

string

Implementation of

Formatter.format

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:48


parse

parse(input): Promise<null | number>

Parameters

NameType
inputstring

Returns

Promise<null | number>

Inherit Doc

Implementation of

Validator.parse

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:59