Total Price Text Builder
Defined under the namespace Scandit.Datacapture.Label
- TotalPriceTextBuilder
class TotalPriceTextBuilder : TextFieldBuilder<TotalPriceTextBuilder, TotalPriceText>
Added in version 7.2.0
- constructor(name)
constructor(name?: string)
Added in version 8.3.0
Constructs a builder with the field name pre-set. When provided, build can be called without arguments.
- setAnchorRegexes(anchorRegexes)
setAnchorRegexes(anchorRegexes: string[]):
thisAdded in version 8.0.0
Sets the identifying text anchor regexes from from a list of strings.
- setAnchorRegex(anchorRegex)
setAnchorRegex(anchorRegex: string):
thisAdded in version 8.0.0
Used to specify keywords or phrases that help identify the context of the field. This is particularly useful when the label contains multiple fields that could match the same regex (e.g., when both packaging and expiry dates are present).
- resetAnchorRegexes()
resetAnchorRegexes():
thisAdded in version 8.0.0
All pre-built fields come with default valueRegexes and anchorRegexes that are suitable for most use cases. Using either method is optional and will override the defaults.
This method can be used to remove the default anchorRegex, allowing you to rely solely on the valueRegexes for detection.
- build(name)
build(name?: string): Promise<TotalPriceText>
Added in version 7.2.0
- totalPriceText(name)
function totalPriceText(name: string): TotalPriceTextBuilder
Added in version 8.4.0
Creates a new TotalPriceTextBuilder with the given field name pre-set. Shorthand for
new TotalPriceTextBuilder(name).