Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.37 KB

NotEqualTo.md

File metadata and controls

39 lines (30 loc) · 1.37 KB

NotEqualTo

Validates that a value is not equal to another value, defined in the options. To force that a value is equal, see EqualTo.

Options

message

type: string default: This value should not be equal to {{ compared_value }}.
This is the message that will be shown if the value is equal.

Parameter Description
{{ value }} The current (invalid) value
{{ compared_value }} The expected value
{{ compared_value_type }} The expected value type
value

type: number|Date
This option is required. It defines the value to compare to. It can be a number or date object.

strict

type: boolean default: false Use this option to force strict mode checks.

message_strict

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
locale_string

type: string default: en-US User this option to set current locale to provide custom configuration for DateTime formatting.

locale_options

type: object default: {} User this option to configure Intl DateTime formatting. See configuration options.