Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nautilus: mgr/dashboard: Make all columns sortable (#27889)
nautilus: mgr/dashboard: Make all columns sortable Reviewed-by: Alfonso Martínez <almartin@redhat.com>
- Loading branch information
Showing
9 changed files
with
136 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/pybind/mgr/dashboard/frontend/src/app/shared/models/cd-table-column.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import { TableColumn } from '@swimlane/ngx-datatable'; | ||
import { TableColumn, TableColumnProp } from '@swimlane/ngx-datatable'; | ||
|
||
import { CellTemplate } from '../enum/cell-template.enum'; | ||
|
||
export interface CdTableColumn extends TableColumn { | ||
cellTransformation?: CellTemplate; | ||
isHidden?: boolean; | ||
prop: TableColumnProp; // Enforces properties to get sortable columns | ||
} |