Hex Core JS
    Preparing search index...

    Function minLengthValidator

    • Returns a validation function to validate that the length of the value is greater than or equal to the min length, if given.

      Note: null values count as valid.

      Parameters

      • OptionalminLength: number

        The minimum allowed length of a value.

      • OptionalerrorMessage: string

        A custom error message to display if the value is invalid.

      Returns SyncValidationFunction<ElementWithLength | null>