Skip to content

Commit

Permalink
frontend: Enable sorting in KWA's main table (#2017)
Browse files Browse the repository at this point in the history
* Enable the sorting functionality in KWA's main table.

Signed-off-by: Elena Zioga <elena@arrikto.com>

Signed-off-by: Elena Zioga <elena@arrikto.com>
  • Loading branch information
elenzio9 authored Dec 7, 2022
1 parent 4cc9500 commit 01b59a4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const experimentsTableConfig: TableConfig = {
value: new StatusValue({
valueFn: parseStatus,
}),
sort: true,
},
{
matHeaderCellDef: 'Name',
Expand All @@ -34,6 +35,7 @@ export const experimentsTableConfig: TableConfig = {
field: 'name',
isLink: true,
}),
sort: true,
},
{
matHeaderCellDef: 'Created at',
Expand All @@ -42,6 +44,7 @@ export const experimentsTableConfig: TableConfig = {
value: new DateTimeValue({
field: 'startTime',
}),
sort: true,
},
{
matHeaderCellDef: 'Successful trials',
Expand All @@ -50,6 +53,7 @@ export const experimentsTableConfig: TableConfig = {
value: new PropertyValue({
valueFn: parseSucceededTrials,
}),
sort: true,
},
{
matHeaderCellDef: 'Running trials',
Expand All @@ -58,6 +62,7 @@ export const experimentsTableConfig: TableConfig = {
value: new PropertyValue({
valueFn: parseRunningTrials,
}),
sort: true,
},
{
matHeaderCellDef: 'Failed trials',
Expand All @@ -66,6 +71,7 @@ export const experimentsTableConfig: TableConfig = {
value: new PropertyValue({
valueFn: parseFailedTrials,
}),
sort: true,
},
{
matHeaderCellDef: 'Optimal trial',
Expand Down

0 comments on commit 01b59a4

Please sign in to comment.