Formula Class
Encapsulates a UI formula. A formula can be used in UI layouts to define property-bindings or to implement a specific behavior.
Item Index
Methods
Methods
exec
()
The formula-function. Its a wrapper-function before the first-time call was made.
onChange
-
numberValue
Checks if the specified number-value has changed since the last check. It uses the first entry of the numbers-array to store the value and check against the new one.
Parameters:
-
numberValue
Number- Number value to check.
onTextChange
-
textValue
Checks if the specified text-value has changed since the last check. It uses the first entry of the strings-array to store the value and check against the new one.
Parameters:
-
textValue
String- Text value to check.
Properties
data
Object
An optional data-object which can bes accessed inside the formula-function.
event
String
An optional event-name to define when the formula should be executed.
exec_
Function
The formula-function.
numbers
Number
An array of custom number-data which can be used for different purposes. The first element is also used in onChange method to store the old value and check against the new one to detect a change.
onInitialize
Boolean
Indicates if its the first time the formula is called.
strings
String
An array of custom string-data which can be used for different purposes. The first element is also used in onTextChange method to store the old value and check against the new one to detect a change.