mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 18:26:00 +00:00
perspectives WIP
This commit is contained in:
17
packages/datalib/src/PerspectiveConfig.ts
Normal file
17
packages/datalib/src/PerspectiveConfig.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
export interface PerspectiveConfig {
|
||||
hiddenColumns: string[];
|
||||
shownColumns: string[];
|
||||
expandedColumns: string[];
|
||||
collapsedColumns: string[];
|
||||
}
|
||||
|
||||
export function createPerspectiveConfig(): PerspectiveConfig {
|
||||
return {
|
||||
hiddenColumns: [],
|
||||
shownColumns: [],
|
||||
expandedColumns: [],
|
||||
collapsedColumns: [],
|
||||
};
|
||||
}
|
||||
|
||||
export type ChangePerspectiveConfigFunc = (changeFunc: (config: PerspectiveConfig) => PerspectiveConfig) => void;
|
||||
Reference in New Issue
Block a user