ch.Condition
Description
Condition utility.
How-to
Parameters
-
condition
- Array : A conditions to validate.-
name
- String : The name of the condition. -
message
- String : The given error message to the condition. -
fn
- String : The method to validate a given condition.
-
Properties
.Condition#name
String
The name of the component.
Methods
-
value
- String | Number : A given value. -
validation
- condition : A given validation to execute.
.constructor()
Returns a reference to the constructor function.
.disable() → {condition}
Disables an instance of a condition.
.enable() → {condition}
Enables an instance of condition.
.test(value, validation) → {Boolean}
Enables an instance of condition.