Class ValueCondition
Hierarchy
- Condition
- ValueCondition
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Creates a new ValueCondition
Parameters
actionManager: ActionManager
manager for the action the condition applies to
target: any
for the action
propertyPath: string
path to specify the property of the target the conditional operator uses
value: any
the value compared by the conditional operator against the current value of the property
Optional operator: number
the conditional operator, default ValueCondition.IsEqual
Returns ValueCondition
Properties
operatorSearch playground for operator
the conditional operator, default ValueCondition.IsEqual
property PathSearch playground for propertyPath
path to specify the property of the target the conditional operator uses
valueSearch playground for value
the value compared by the conditional operator against the current value of the property
Accessors
Static Is Different
Returns the number for IsDifferent
Returns number
Static Is Equal
returns the number for IsEqual
Returns number
Static Is Greater
Returns the number for IsGreater
Returns number
Static Is Lesser
Returns the number for IsLesser
Returns number
Methods
is ValidSearch playground for isValid
Compares the given value with the property value for the specified conditional operator
Returns boolean
the result of the comparison
serializeSearch playground for serialize
Serialize the ValueCondition into a JSON compatible object
Returns any
serialization object
Static Get Operator NameSearch playground for GetOperatorName
Gets the name of the conditional operator for the ValueCondition
Parameters
operator: number
the conditional operator
Returns string
the name
Defines specific conditional operators as extensions of Condition