Skip to main content

Class: TemperatureFormat

Validator and Formatter for temperatures

Implements

  • Validator<number>
  • Formatter<number>

Constructors

constructor

new TemperatureFormat(): TemperatureFormat

Returns

TemperatureFormat

Properties

nullValueString

nullValueString: string = '□□□°C'

Implementation of

Formatter.nullValueString

Defined in

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

Methods

format

format(value): string

Parameters

NameType
valuenumber

Returns

string

Inherit Doc

Implementation of

Formatter.format

Defined in

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


parse

parse(input): null | number

Parameters

NameType
inputstring

Returns

null | number

Inherit Doc

Implementation of

Validator.parse

Defined in

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