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
Parameter | Type | Description |
---|---|---|
fms | WT21Fms | the FMS |
index | 1 | 2 | which 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
Parameter | Type | Description |
---|---|---|
value | FreqMode | the 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
Parameter | Type |
---|---|
input | string |
Returns
Promise
<null
| number
>
Inherit Doc
Implementation of
Validator.parse