DataFilter
CompleteBuilds a filter from conditions (field, operator, value) and returns it as a predicate, so it works with any list and with DataGrid items. Operators fit the field kind: text, number, date or boolean.
Example

Parameters
| Parameter | Type | Description |
|---|---|---|
Class | string | Extra CSS classes added to the root element. |
Conditions | IReadOnlyList<FilterCondition> | The conditions. Use with @bind-Conditions. |
Fields | IEnumerable<DataFilterField<TItem>> | DataFilterField(id, title, value, kind) items. |
Label | string | Visible label text (charts: accessible name; IconButton: accessible name and tooltip). |
MatchAll | bool | True when every condition must match, false when one is enough. |
Style | string | Inline style added to the root element. |
Events
| Event | Type | Description |
|---|---|---|
ConditionsChanged | EventCallback<IReadOnlyList<FilterCondition>> | Raised when a condition is added, changed or removed. |
MatchAllChanged | EventCallback<bool> | Raised when the combination changes. |
PredicateChanged | EventCallback<Func<TItem, bool>> | Raised with a Func that tests an item against the conditions. |
Package
DataFilter 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