LgListViewFilter<TItem, TValue>
Module : Lagoon.UI
Namespace : Lagoon.UI.Components
Category: ListView
Inherits from: LgComponentBase
Filter of a LgListView{TItem} component, declared in its "Filters" section: filters the items on a member with the filter box of the grid matching the member type (text, numeric, date, time, boolean, enum, or a selection of values for the other types).
Parameters
| Parameter | Type | Description |
|---|---|---|
FilterSelector | Expression<Func<TItem, TValue>> | Gets or sets the filtered value selector item => item.Member. Its type chooses the filter box. A computed value (not a simple member path) requires the Key parameter. Frozen at the initialization (changing it at runtime is not supported). |
Items | IEnumerable<TValue> | Gets or sets the values offered by the "Selection" tab of the filter box. When omitted, the values of the data source, filtered by the other filters of the list, are offered. |
Key | string | Gets or sets the key identifying the filter (persisted state, keys of the filter changed event). The member path of the FilterSelector is used by default (e.g. "Owner.Name"); required when the selector is not a member path. |
Text | string | Gets or sets the label of the filter. The "Name" of the DisplayAttribute of the filtered member is used by default, then the filter key. |