dojox/grid/enhanced/plugins/filter/_FilterExpr._UniOpExpr (version 1.10)

Summary

The most abstract class for all uni-operator expressions. A uni-operator expression is an _OperatorExpr that only allow one operand.

Usage

var foo = new _FilterExpr._UniOpExpr();
dojox/grid/enhanced/plugins/filter/_ConditionExpr

Property Summary

Method Summary

  • _calculate(operand,datarow,getter) Unimplemented Interface Do the actrual work of applyRow here.
  • applyRow(datarow,getter) Implement _ConditionExpr.applyRow.
  • getName() Get the name of this kind of expression.
  • toObject() Overrided from _ConditionExpr.toObject

Properties

Methods

_calculate(operand,datarow,getter)

Unimplemented Interface Do the actrual work of applyRow here.

Parameter Type Description
operand Object

An object with the following properties:

  • _name
  • applyRow:

    Unimplemented Interface Apply this condition expression on the given datarow, return a result expression.

  • toObject:

    Convert this data expression to a simple object. Mainly used for serialization.

  • getName:

    Get the name of this kind of expression.

datarow object
getter function(row,colArg)
Returns:any

MUST return a _ConditionExpr object.

applyRow(datarow,getter)

Implement _ConditionExpr.applyRow. Apply the restriction of "only one operand" and confirm the operand is a valid _ConditionExpr. Then do the calculation of this operator.

Parameter Type Description
datarow data item
getter function(row,colArg)
Returns:undefined
getName()

Get the name of this kind of expression.

Returns:any | undefined

the name of this kind of expression

toObject()

Overrided from _ConditionExpr.toObject

Returns:Object
Error in the documentation? Can’t find what you are looking for? Let us know!