mithril-materialized
    Preparing search index...

    Interface ValidationConfig<T>

    Configuration for components with validation

    interface ValidationConfig<T = any> {
        maxLength?: number;
        minLength?: number;
        pattern?: RegExp;
        required?: boolean;
        showValidationMessage?: boolean;
        validator?: ValidatorFunction<T>;
    }

    Type Parameters

    • T = any

      The type of value being validated

    Index

    Properties

    maxLength?: number

    Maximum length for string values

    minLength?: number

    Minimum length for string values

    pattern?: RegExp

    Pattern to match for validation

    required?: boolean

    Whether the field is required

    showValidationMessage?: boolean

    Whether to show validation messages inline

    validator?: ValidatorFunction<T>

    Custom validation function