FilterBuilder
Since 0.1.0-alpha.20IzzyBlazor.FilterBuilder<TItem> in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.20 assembly
and its doc comments.
Properties (7)
FieldsIReadOnlyList<DataField<TItem>> requiredThe fields to build from: DataFields.Of<Order>(), or your own. Only filterable text, numbers, dates, enums and booleans are offered.
@bind-ValueFilter?The filter. Bind it on an interactive page; otherwise it's read from the address.
Namestring = "filter"The key in the address. Defaults to filter.
PageKeystring = "page"The address's page number, dropped on Apply, as a new filter starts at the first page. Defaults to page.
CursorKeystring = "cursor"The address's cursor, dropped on Apply as the page number is. Defaults to cursor.
MaxDepthint = 5How deeply groups can nest. Defaults to 5.
Labelstring? = "Filter builder"Its name for screen readers. Defaults to "Filter builder".
Plus 16 item props and 4 common props.
Show them hereEvents (0)
No events.
Types (2)
DataField
classA field of the data: its key in requests and addresses, the expression that reads it, and what can be done with it. One description serves sorting, filtering and search. A Table's columns are fields; Of reads them from a type.
| Member | Description |
|---|---|
Key string | The field's name in requests and the address, such as |
Value LambdaExpression | What the field reads from an item, such as |
Type Type | The type of the field's value. |
Caption string? | The field's name for people: |
Format string? | A .NET format string for the value, such as |
Sortable bool = false | Whether a request can sort by it. |
Filterable bool = false | Whether a filter can name it. A condition on a field that isn't filterable matches nothing. |
Searchable bool = false | Whether a request's |
Groupable bool = false | Whether a |
Aggregatable bool = false | Whether a |
AggregateBy LambdaExpression? | The field's own aggregate ( |
Case FilterCase = FilterCase.IgnoreCase | How text compares in a filter or search on it. |
Operators IReadOnlyList<FilterOperator>? | The operators it takes, of those its type takes (see |
Choices IReadOnlyList<ValueTuple<string, string>>? | The values to choose from, value and text: an enum's names (with their |
Filter Func<FieldFilter, Expression<Func<TItem, bool>>?>? | Builds the condition for this field yourself: for a computed value, full-text search, or a value stored differently from how it's shown. It gets the condition with its values parsed for the field's type (a list for In and NotIn, a |
FilterValues FilterValuesLoader? | Finds the values a filter on this field can list, for |
Filter
recordA filter on data: a condition on one field (FieldFilter), conditions joined by and or or (FilterGroup), or the opposite of one (NotFilter). Fields are named by their key (a column's SortKey, or a DataField<T>'s Key). It becomes a LINQ expression on the fields' own properties, so an EF Core query filters in the database; a value never becomes code.
| Member | Description |
|---|---|
Parse(string text) | Reads a filter written in the subset of OData's |
Find(string field) | The condition on |