mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
Add renderer for last played date column
This commit is contained in:
parent
6bfebd2923
commit
f879171398
1 changed files with 2 additions and 0 deletions
|
|
@ -170,7 +170,9 @@ const tableColumns: { [key: string]: ColDef } = {
|
|||
width: 100,
|
||||
},
|
||||
lastPlayedAt: {
|
||||
cellRenderer: (params: ICellRendererParams) => GenericCell(params, { position: 'center' }),
|
||||
colId: TableColumn.LAST_PLAYED,
|
||||
headerComponent: (params: IHeaderParams) => GenericTableHeader(params, { position: 'center' }),
|
||||
headerName: 'Last Played',
|
||||
valueFormatter: (params: ValueFormatterParams) =>
|
||||
params.value ? dayjs(params.value).fromNow() : '',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue