Class: ComFrequencyFormat
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:111
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
Validator<number>Formatter<number>
Constructors
Constructor
new ComFrequencyFormat():
ComFrequencyFormat
Returns
ComFrequencyFormat
Properties
nullValueString
nullValueString:
string='---.---'
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:113
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/WT21/FMC/Framework/FmcFormats.ts:116
Parameters
| Parameter | Type |
|---|---|
freq | number |
Returns
string
Inherit Doc
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:121
Parameters
| Parameter | Type |
|---|---|
input | string |
Returns
Promise<null | number>
Inherit Doc
Implementation of
Validator.parse