mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-08-24 14:48:42 +08:00
Use icons for table row actions
This commit is contained in:
@@ -4,12 +4,17 @@ export enum SortDirection {
|
||||
Desc = "desc",
|
||||
}
|
||||
|
||||
// ColumnConfig is a config for a table column.
|
||||
//
|
||||
// T is the enum of sort keys.
|
||||
export interface ColumnConfig<T> {
|
||||
label: string;
|
||||
// TableColumn is a config for a table column.
|
||||
export interface TableColumn {
|
||||
key: string;
|
||||
sortBy: T;
|
||||
label: string;
|
||||
align: "left" | "right" | "center";
|
||||
}
|
||||
|
||||
// SortableTableColumn is a config for a table column
|
||||
// for table with sorting support.
|
||||
//
|
||||
// T is the enum of sort keys.
|
||||
export interface SortableTableColumn<T> extends TableColumn {
|
||||
sortBy: T;
|
||||
}
|
||||
|
Reference in New Issue
Block a user