Class FilteringExpressionsTree

Hierarchy

  • FilteringExpressionsTree

Implements

Constructors

Properties

Methods

Constructors

constructor

Properties

Optional fieldName

fieldName: string

Sets/gets the field name of the column where the filtering expression is placed.

 gridExpressionTree.fieldName = 'Column Field';
let columnField = expressionTree.fieldName;
memberof

FilteringExpressionsTree

filteringOperands

filteringOperands: (IFilteringExpressionsTree | IFilteringExpression)[] = []

Sets/gets the filtering operands.

const gridExpressionsTree = new FilteringExpressionsTree(FilteringLogic.And);
const expression = [
{
  condition: IgxStringFilteringOperand.instance().condition('contains'),
  fieldName: 'Column Field',
  searchVal: 'Value',
  ignoreCase: false
}];
gridExpressionsTree.filteringOperands.push(expression);
this.grid.filteringExpressionsTree = gridExpressionsTree;
let filteringOperands = gridExpressionsTree.filteringOperands;
memberof

FilteringExpressionsTree

operator

operator: FilteringLogic

Sets/gets the operator.

gridExpressionsTree.operator = FilteringLogic.And;
let operator = gridExpressionsTree.operator;
memberof

FilteringExpressionsTree

Methods

find

findIndex

  • findIndex(fieldName: string): number