QueryBuilder
CompleteBuilds a query from nested groups of conditions, each group combined with AND or OR. The result is a predicate for any list and a readable summary. Fields and operators are the same as in DataFilter.
Example

Parameters
| Parameter | Type | Description |
|---|---|---|
Class | string | Extra CSS classes added to the root element. |
Fields | IEnumerable<DataFilterField<TItem>> | The fields that can be filtered. |
Group | QueryGroup | The root QueryGroup (MatchAll, Conditions, Groups). Use with @bind-Group to keep or restore a query. |
Label | string | Visible label text (charts: accessible name; IconButton: accessible name and tooltip). |
MaxDepth | int | How deep groups can be nested. |
ShowSummary | bool | Shows the query as text below the builder. |
Style | string | Inline style added to the root element. |
Events
| Event | Type | Description |
|---|---|---|
GroupChanged | EventCallback<QueryGroup> | Raised when anything in the query changes. |
PredicateChanged | EventCallback<Func<TItem, bool>> | Raised with a Func that tests an item. |
Package
QueryBuilder is part of RayCraft Complete. Package: RayCraft.Blazor.Complete. It comes from the private RayCraft feed and needs an active license. See Getting started.
Send feedbackVersion 1.0.3