perspective filters

This commit is contained in:
Jan Prochazka
2022-07-25 21:42:01 +02:00
parent f504283002
commit 3bdb5c0152
8 changed files with 142 additions and 46 deletions

View File

@@ -1,15 +1,23 @@
export interface PerspectiveConfig {
export interface PerspectiveConfigColumns {
expandedColumns: string[];
checkedColumns: string[];
uncheckedColumns: string[];
}
export interface PerspectiveConfig extends PerspectiveConfigColumns {
filters: { [uniqueName: string]: string };
}
export function createPerspectiveConfig(): PerspectiveConfig {
return {
expandedColumns: [],
checkedColumns: [],
uncheckedColumns: [],
filters: {},
};
}
export type ChangePerspectiveConfigFunc = (changeFunc: (config: PerspectiveConfig) => PerspectiveConfig) => void;
export type ChangePerspectiveConfigFunc = (
changeFunc: (config: PerspectiveConfig) => PerspectiveConfig,
reload?: boolean
) => void;