Validates that a value is greater than another value, defined in the options. To force that a value is greater than or equal to another value, see GreaterThanOrEqual. To force a value is less than another value, see LessThan.
type: string
default: This value should be greater than {{ compared_value }}.
This is the message that will be shown if the value is not greater than the comparison value.
Parameter | Description |
---|---|
{{ value }} | The current (invalid) value |
{{ compared_value }} | The expected value |
{{ compared_value_type }} | The expected value type |
type: number|Date
This option is required. It defines the value to compare to. It can be a number or date object.
type: boolean
default: false
Use this option to force strict mode checks.
type: string
default: This values has different types. Given type is {{ compared_type }}; Expected type is {{ expected_type }}.
Parameter | Description |
---|---|
{{ value_type }} | The current (invalid) value type |
{{ compared_type }} | The expected value type |
type: string
default: en-US
User this option to set current locale to provide custom configuration for DateTime formatting.
type: object
default: {}
User this option to configure Intl DateTime formatting.
See configuration options.