Module vEditField
cValue-based edit field, inspired by the Advanced-Edit panel .
#
## Features * Support cValues - numbers with restricted range, etc. * Works with all basic value-type (boolean, string and number) * Expose different operators for each type of value
Functions
| update (cval) | update control according to set value-type |
| update_result () | display 'preview' of value |
| get_result () | |
| apply () | apply operator to value |
| get_type_ops () | get list of operators associated with the current data-type |
| set_value (cval) | |
| set_operator (val) |
Functions
- update (cval)
-
update control according to set value-type
Parameters:
- cval (cValue)
- update_result ()
-
display 'preview' of value
Returns:
-
value (with the current operator applied...)
- get_result ()
-
Returns:
-
value (with the current operator applied...)
- apply ()
- apply operator to value
- get_type_ops ()
-
get list of operators associated with the current data-type
Returns:
-
table
- set_value (cval)
-
Parameters:
- cval (table), value descriptor - converted to cValue
- set_operator (val)
-
Parameters:
- val (vEditField.OPERATOR)