Skip to main content

Class: StringInputFormat

Validator/Formatter for string, string input fields

Implements

  • Validator<string>
  • Formatter<string>

Constructors

constructor

new StringInputFormat(options?): StringInputFormat

Ctor

Parameters

NameTypeDescription
optionsPartial<StringInputFormatOptions>The format options.

Returns

StringInputFormat

Defined in

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

Properties

nullValueString

nullValueString: string = ''

Implementation of

Formatter.nullValueString

Defined in

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


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

Parameters

NameType
valuestring

Returns

string

Inherit Doc

Implementation of

Formatter.format

Defined in

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


parse

parse(text): null | string

Parameters

NameType
textstring

Returns

null | string

Inherit Doc

Implementation of

Validator.parse

Defined in

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