A component used for operating with complex filters by creating or editing conditions and grouping them using AND/OR logic. It is used internally in the Advanced Filtering of the Grid.

Disables subsequent entity changes at the root level after the initial selection.

disableEntityChange: boolean

Disables return fields changes at the root level.

disableReturnFieldsChange: boolean

Gets the list of entities available for the QueryBuilderComponent.

Each entity describes a logical group of fields that can be used in queries. An entity can optionally have child entities, allowing nested sub-queries.

entities: IgrEntityType[]

Returns the expression tree.

expressionTree: IgrExpressionTree

Gets the locale of the query builder. If not set, defaults to application's locale.

locale: string
queryBuilderHeaderCollection: IgrQueryBuilderHeaderComponent[]

Sets the resource strings. By default it uses EN resources.

resourceStrings: IgrQueryBuilderResourceStrings

Sets/gets the search value template.

searchValueTemplate: (ctx: IgrQueryBuilderSearchValueContext) => React.ReactNode

Gets/sets whether the confirmation dialog should be shown when changing entity. Default value is true.

showEntityChangeDialog: boolean

Returns whether the expression tree can be committed in the current state.

canCommit(): boolean

Returns boolean

Commits the expression tree in the current state if it is valid. If not throws an exception.

commit(): void

Returns void

Discards all unsaved changes to the expression tree.

discard(): void

Returns void

onExpressionTreeChange(args: CustomEvent<IgrExpressionTree>): void

Parameters

Returns void