grid sorting

This commit is contained in:
Jan Prochazka
2020-04-04 11:06:27 +02:00
parent a3e9ba61af
commit 7b8a604957
7 changed files with 57 additions and 6 deletions

View File

@@ -9,6 +9,10 @@ export interface GridConfigColumns {
export interface GridConfig extends GridConfigColumns {
filters: { [uniqueName: string]: string };
sort: {
uniqueName: string;
order: 'ASC' | 'DESC';
}[];
}
export interface GridCache {
@@ -22,6 +26,7 @@ export function createGridConfig(): GridConfig {
expandedColumns: [],
addedColumns: [],
filters: {},
sort: [],
};
}