Class ValueCondition
Hierarchy (View Summary)
- Condition
- ValueCondition
Constructors
constructor
-
new ValueCondition(
actionManager: ActionManager,
target: any,
propertyPath: string,
value: any,
operator?: number,
): ValueConditionCreates 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
- operator: number = ValueCondition.IsEqual
the conditional operator, default ValueCondition.IsEqual
Returns ValueCondition
- actionManager: ActionManager
Properties
operator
[number] the conditional operator, default ValueCondition.IsEqual
property Path
path to specify the property of the target the conditional operator uses
value
the value compared by the conditional operator against the current value of the property
Accessors
StaticIs Different
-
get IsDifferent(): number
Returns the number for IsDifferent
Returns number
StaticIs Equal
-
get IsEqual(): number
returns the number for IsEqual
Returns number
StaticIs Greater
-
get IsGreater(): number
Returns the number for IsGreater
Returns number
StaticIs Lesser
-
get IsLesser(): number
Returns the number for IsLesser
Returns number
Methods
is Valid
-
Compares the given value with the property value for the specified conditional operator
Returns boolean
the result of the comparison
serialize
-
Serialize the ValueCondition into a JSON compatible object
Returns any
serialization object
StaticGet Operator Name
-
Gets the name of the conditional operator for the ValueCondition
Parameters
- operator: number
the conditional operator
Returns string
the name
- operator: number
Defines specific conditional operators as extensions of Condition