src/modules/table/entities/table-column-filter.intf.ts
Definition of the filter in the StarkTableComponent
Properties |
|
columnName |
columnName:
|
Type : string
|
Name of the column to filter. |
filterPosition |
filterPosition:
|
Type : MenuPositionY
|
Optional |
The position where the column filter box should be displayed. Default: |
filterValue |
filterValue:
|
Type : string
|
Optional |
Value of the filter. The following wildcards are supported:
Use |
resetFilterOnDataChange |
resetFilterOnDataChange:
|
Type : boolean
|
Optional |
Whether the filter in the StarkTableComponent must be reset when the data changes. Default: |
import { LegacyMenuPositionY as MenuPositionY } from "@angular/material/legacy-menu";
/**
* Definition of the filter in the {@link StarkTableComponent}
*/
export interface StarkTableColumnFilter {
/**
* Name of the column to filter.
*/
columnName: string;
/**
* Value of the filter.
*
* The following wildcards are supported:
* - `*` to match any character(s)
* - `?` to match one character
*
* Use `\*` and `\?` to match exactly the characters `"*"` and `"?"`
*/
filterValue?: string;
/**
* Whether the filter in the {@link StarkTableComponent} must be reset when the data changes.
*
* Default: `false`.
*/
resetFilterOnDataChange?: boolean;
/**
* The position where the column filter box should be displayed.
*
* Default: `"below"`
*/
filterPosition?: MenuPositionY;
}