src/modules/table/entities/table-filter.intf.ts
Represents the column filtering options of the StarkTableComponent.
Properties |
|
columns |
columns:
|
Type : StarkTableColumnFilter[]
|
Optional |
Array of StarkTableColumnFilter objects that define column filters |
filterPosition |
filterPosition:
|
Type : MenuPositionY
|
Optional |
The position in which the global filter box for the table should be displayed. Default: |
globalFilterPresent |
globalFilterPresent:
|
Type : boolean
|
Optional |
Whether or not to display the global filter. Default: |
globalFilterValue |
globalFilterValue:
|
Type : string
|
Optional |
Value of the filter for all displayed columns. The following wildcards are supported:
Use |
resetGlobalFilterOnDataChange |
resetGlobalFilterOnDataChange:
|
Type : boolean
|
Optional |
Whether the filter in the StarkTableComponent must be reset when the data changes. Default: |
import { StarkTableColumnFilter } from "./table-column-filter.intf";
import { LegacyMenuPositionY as MenuPositionY } from "@angular/material/legacy-menu";
/**
* Represents the column filtering options of the {@link StarkTableComponent}.
*/
export interface StarkTableFilter {
/**
* Whether or not to display the global filter.
*
* Default: `true`.
*/
globalFilterPresent?: boolean;
/**
* Value of the filter for all displayed columns.
*
* The following wildcards are supported:
* - `*` to match any character(s)
* - `?` to match one character
*
* Use `\*` and `\?` to match exactly the characters `"*"` and `"?"`
*/
globalFilterValue?: string;
/**
* Array of {@link StarkTableColumnFilter} objects that define column filters
*/
columns?: StarkTableColumnFilter[];
/**
* Whether the filter in the {@link StarkTableComponent} must be reset when the data changes.
*
* Default: `false`.
*/
resetGlobalFilterOnDataChange?: boolean;
/**
* The position in which the global filter box for the table should be displayed.
*
* Default: `"below"`
*/
filterPosition?: MenuPositionY;
}