The most abstract class for all data expressions. A _DataExpr is a condition expression for a single data value. If the data value to be represent is a pure value (literal value, like string/number/Date/...) this _DataExpr is nothing more than a simple wrapper. If the data value to be represent is in a store, then _DataExpr is responsible to extract it from the store when this condition is applied to a data row.
Parameter | Type | Description |
---|---|---|
dataValue | anything | If isColumn is a boolean true, then it should be a kind of column information, like field name or column index. Otherwise, it is regarded as a pure value, and the getValue method will simply return it. |
isColumn | boolean |
Optional Optional. To specify whether this _DataExpr represents a column or a pure value. |
convertArgs | object |
Parameter | Type | Description |
---|---|---|
dataValue | anything | This argument should come from a store. |
This argument should come from a store.
Implement _ConditionExpr.applyRow. If this is a pure value, simply return self. Otherwise, extract the cell data from datarow using the given getter function, and then convert this cell data to a _DataExpr and return the expression.
An object with the following properties:
Unimplemented Interface Apply this condition expression on the given datarow, return a result expression.
Convert this data expression to a simple object. Mainly used for serialization.
Get the name of this kind of expression.
Parameter | Type | Description |
---|---|---|
datarow | data item | |
getter | function(row,colIdx) |
Implement _ConditionExpr.applyRow. If this is a pure value, simply return self. Otherwise, extract the cell data from datarow using the given getter function, and then convert this cell data to a _DataExpr and return the expression.
Get the name of this kind of expression.
the name of this kind of expression
If this is a pure value wrapper, simply return the value. Otherwise (it's a column), return is undefined.
the value of this data expression.
Overrided from _ConditionExpr.toObject