Class: TemperatureFormat
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:178
Validator and Formatter for temperatures
Implements
Validator
<number
>Formatter
<number
>
Constructors
Constructor
new TemperatureFormat():
TemperatureFormat
Returns
TemperatureFormat
Properties
nullValueString
nullValueString:
string
='□□□°C'
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:201
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:204
Parameters
Parameter | Type |
---|---|
value | number |
Returns
string
Inherit Doc
Implementation of
Formatter.format
parse()
parse(
input
):null
|number
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:181
Parameters
Parameter | Type |
---|---|
input | string |
Returns
null
| number
Inherit Doc
Implementation of
Validator.parse