FieldErrorArguments interface

Module @runic-artifex/views in @runic-artifex/views 0.23.0

interface FieldErrorArguments

The parts of an invalid-text message (FieldErrorReason); each reason sets the ones its row lists.

Properties

text

readonly text?: string;

The text the user typed, trimmed (as typed for not-a-boolean and not-a-choice).

scale

readonly scale?: number;

The most digits after the decimal separator (too-many-fraction-digits).

choices

readonly choices?: readonly string[];

The values a choice takes (not-a-choice).

patterns

readonly patterns?: readonly string[];

The forms a date or time text takes, the window locale's first, such as ["DD.MM.YYYY", "YYYY-MM-DD"] or ["hh:mm", "hh:mm:ss"]. The English message joins them with "or".

expected

readonly expected?: FieldErrorExpected;

What an empty field needs (required).