Skip to main content

Class: NumberInputFormat

Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputFormats.ts:109

Format for a plain number.

Implements

Constructors

Constructor

new NumberInputFormat(nullValueDisplay, min?, max?, decimals?): NumberInputFormat

Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputFormats.ts:111

Parameters

ParameterTypeDefault value
nullValueDisplaystring'□□□□□'
min?numberundefined
max?numberundefined
decimals?numberundefined

Returns

NumberInputFormat

Inherit Doc

Properties

format

format: FormatterFunction<number>

Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputFormats.ts:115

Inherit Doc

Implementation of

FormatterValidator.format


nullValueString

nullValueString: string

Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputFormats.ts:116

The string to show when a value is null

Implementation of

FormatterValidator.nullValueString


parse()

parse: (input) => null | number | Promise<null | number>

Defined in: workingtitle-instruments-epic2/shared/Formatters/Epic2InputFormats.ts:113

Parameters

ParameterType
inputstring

Returns

null | number | Promise<null | number>

Inherit Doc

Implementation of

FormatterValidator.parse