Expiry Date Text Builder

Defined under the namespace Scandit.Datacapture.Label

ExpiryDateTextBuilder
class ExpiryDateTextBuilder : TextFieldBuilder<ExpiryDateTextBuilder, ExpiryDateText>

Added in version 7.2.0

This class is used to define an expiry date field for a LabelDefinition in a fluent way.

setDataTypePatterns(dataTypePatterns)
setDataTypePatterns(dataTypePatterns: string[]): this

Added in version 7.2.0

Sets the identifying text patterns (data type patterns) from a single string.

setDataTypePattern(dataTypePattern)
setDataTypePattern(dataTypePattern: string): this

Added in version 7.2.0

Sets the identifying text patterns (data type patterns) from a single regular expression.

resetDataTypePatterns()
resetDataTypePatterns(): this

Added in version 7.2.0

Resets the identifying text patterns (data type patterns) to an empty list. For cases where the expiry date has no associated identifying text.

setLabelDateFormat(labelDateFormat)
setLabelDateFormat(labelDateFormat: LabelDateFormat): this

Added in version 7.2.0

Sets a LabelDateFormat to use when recognising this date.

build(name)
build(name: string): Promise<ExpiryDateText>

Added in version 7.2.0

Builds the ExpiryDateText using the properties provided previously with other methods.