Hex Core JS
    Preparing search index...

    Function lowerBoundValidator

    • Returns a validation function to validate that a number is less than the max value, if given. Exclusive version of minValueValidator. Can be used to validate that a number is positive by setting lowerBound to 0.

      Note: null values count as valid.

      Parameters

      • OptionallowerBound: number

        The lower bound of allowed values.

      • OptionalerrorMessage: string

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

      Returns SyncValidationFunction<number | null>