RayCraftDocs
v1.0.3 raycraft.dev
On this page

QueryBuilder

Complete

Builds 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

QueryBuilder control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
FieldsIEnumerable<DataFilterField<TItem>>The fields that can be filtered.
GroupQueryGroupThe root QueryGroup (MatchAll, Conditions, Groups). Use with @bind-Group to keep or restore a query.
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
MaxDepthintHow deep groups can be nested.
ShowSummaryboolShows the query as text below the builder.
StylestringInline style added to the root element.

Events

EventTypeDescription
GroupChangedEventCallback<QueryGroup>Raised when anything in the query changes.
PredicateChangedEventCallback<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.