Skip to main content

Class: StringInputFormat

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

Validator/Formatter for string, string input fields

Implements

  • Validator<string>
  • Formatter<string>

Constructors

Constructor

new StringInputFormat(options): StringInputFormat

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

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/WT21/FMC/Framework/FmcFormats.ts:483

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/WT21/FMC/Framework/FmcFormats.ts:481

Methods

format()

format(value): string

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

Parameters

ParameterType
valuestring

Returns

string

Inherit Doc

Implementation of

Formatter.format


parse()

parse(text): null | string

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

Parameters

ParameterType
textstring

Returns

null | string

Inherit Doc

Implementation of

Validator.parse