Add table to cron view

This commit is contained in:
Ken Hibino
2020-11-29 07:20:54 -08:00
parent 753970471f
commit b9cb9211ce
4 changed files with 334 additions and 16 deletions

15
ui/src/types/table.ts Normal file
View File

@@ -0,0 +1,15 @@
// SortDirection describes the direction of sort.
export enum SortDirection {
Asc = "asc",
Desc = "desc",
}
// ColumnConfig is a config for a table column.
//
// T is the enum of sort keys.
export interface ColumnConfig<T> {
label: string;
key: string;
sortBy: T;
align: "left" | "right" | "center";
}