recreateTreeFromFields

Recreates the tree from a given array of fields by applying the correct operands. It is recommended to use recreateTree if there will be multiple entities in the tree with potentially colliding field names.

Signature

recreateTreeFromFields(tree: IExpressionTree, fields: FieldType[]): IExpressionTree

Defined in projects/igniteui-angular/core/src/data-operations/expressions-tree-util.ts:207

Parameters

  • tree: IExpressionTree

    The expression tree to recreate.

  • fields: FieldType[]

    An array of fields to use for recreating the tree.

Returns

IExpressionTree