mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-08-24 14:48:42 +08:00
Add table to cron view
This commit is contained in:
15
ui/src/types/table.ts
Normal file
15
ui/src/types/table.ts
Normal 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";
|
||||
}
|
Reference in New Issue
Block a user