List filters provide filtering capabilities for a SKY UX-themed list of data.
SkyListFiltersModule
@skyux/list-builder
npm install --save-exact @skyux/list-builder
Contains a filter button for the list toolbar. Place a
sky-filter-button
component inside this component to open a modal with filtering options.
To apply filter options, use the
list component's
appliedFilters
property.
sky-list-filter-button
Creates a filter summary based on the
list component's
appliedFilters
property. Place this component within the
sky-list-toolbar
component.
sky-list-filter-summary
Event | Description |
---|---|
summaryItemClick: EventEmitter<ListFilterModel> | Emits a |
Creates a filter in the list's inline filter area.
sky-list-filter-inline-item
Input | Description |
---|---|
name: string | Danger: Required. The name of the filter. |
template: TemplateRef<unknown> | Danger: Required. The template for the filter. The template can access the |
defaultValue?: any | The default value of the filter. If the value of the filter is set to the default value, then the filter is not applied. Optional. |
filter?: (item: ListItemModel, filter: any) => boolean | The function that determines whether an item is filtered.
This property is required when using an in-memory data provider. For information
about Optional. |
value?: any | The current value of the filter. Optional. |
Property | Description |
---|---|
name: string | Danger: Required. The name of the filter. |
defaultValue?: any | The default value of the filter. When a filter equals the default value, the filter does not affect the list. Optional. |
dismissible?: boolean | Whether users can dismiss the filter's summary item. Optional. Default is true |
filterFunction?: (item: ListItemModel, filter: any) => boolean | The function that determines whether items are filtered.
This property is required when using an in-memory data provider.
For information about Optional. |
label?: string | The label for the filter's summary item.
The label defaults to the Optional. |
value?: any | The current value of the filter. Optional. |