Class: NumberAndUnitFormat
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:287
Format for number with unit entries
Implements
Validator<number>Formatter<number>
Constructors
Constructor
new NumberAndUnitFormat(
unit,options,nullValueString):NumberAndUnitFormat
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:296
CTOR
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
unit | string | undefined | A unit |
options | Partial<NumberAndUnitFormatOptions> | {} | Format options |
nullValueString | string | '' | null value string |
Returns
NumberAndUnitFormat
Properties
nullValueString
readonlynullValueString:string=''
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:299
null value string
Implementation of
Formatter.nullValueString
options
protectedreadonlyoptions:NumberAndUnitFormatOptions
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:288
unit
protectedreadonlyunit:string
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:297
A unit
Methods
format()
format(
value):string
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcFormats.ts:329
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:314
Parameters
| Parameter | Type |
|---|---|
input | string |
Returns
null | number
Inherit Doc
Implementation of
Validator.parse