Skip to main content

Class: NavFrequencyFormat

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

FmcFormat for displaying a nav frequency

Accepts an XXX.YY string

Implements

  • Validator<number>
  • Formatter<FreqMode>

Constructors

Constructor

new NavFrequencyFormat(fms, index): NavFrequencyFormat

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

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/WT21/FMC/Framework/FmcFormats.ts:45

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/WT21/FMC/Framework/FmcFormats.ts:48

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<null | number>

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

Parameters

ParameterType
inputstring

Returns

Promise<null | number>

Inherit Doc

Implementation of

Validator.parse