ART Framework API Docs
    Preparing search index...

    Interface HITLInputValidation

    Validation constraints for HITL input.

    interface HITLInputValidation {
        max?: number;
        maxLength?: number;
        maxSelections?: number;
        min?: number;
        minLength?: number;
        minSelections?: number;
        pattern?: string;
        patternMessage?: string;
        required?: boolean;
    }
    Index

    Properties

    max?: number

    For number: maximum value.

    maxLength?: number

    For text: maximum character length.

    maxSelections?: number

    For multiselect: maximum number of selections allowed.

    min?: number

    For number: minimum value.

    minLength?: number

    For text: minimum character length.

    minSelections?: number

    For multiselect: minimum number of selections required.

    pattern?: string

    For text: regex pattern the input must match.

    patternMessage?: string

    Custom error message when pattern validation fails.

    required?: boolean

    Whether the input is required (non-empty).

    false