Skip to main content

Class: StringInputFormat

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Framework/FmcFormats.ts:479

Validator/Formatter for string, string input fields

Implements​

Constructors​

Constructor​

new StringInputFormat(options): StringInputFormat

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Framework/FmcFormats.ts:488

Ctor

Parameters​

ParameterTypeDescription
optionsPartial<StringInputFormatOptions>The format options.

Returns​

StringInputFormat

Properties​

nullValueString​

nullValueString: string = ''

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Framework/FmcFormats.ts:482

The string to show when a value is null

Implementation of​

Formatter.nullValueString


options​

protected readonly options: StringInputFormatOptions

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Framework/FmcFormats.ts:480

Methods​

format()​

format(value): string

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Framework/FmcFormats.ts:497

Parameters​

ParameterType
valuestring

Returns​

string

Inherit Doc​

Implementation of​

Formatter.format


parse()​

parse(text): string | null

Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21v2/FMC/Framework/FmcFormats.ts:503

Parameters​

ParameterType
textstring

Returns​

string | null

Inherit Doc​

Implementation of​

Validator.parse