From 3fcbddc1a94fb5f1c50e914a692c1f03ce6125a1 Mon Sep 17 00:00:00 2001 From: Esko Ikkala <esko.ikkala@aalto.fi> Date: Tue, 2 Oct 2018 15:06:16 +0300 Subject: [PATCH] Add creation date column --- src/client/components/VirtualizedTable.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/client/components/VirtualizedTable.js b/src/client/components/VirtualizedTable.js index 6b358655..9862ebae 100644 --- a/src/client/components/VirtualizedTable.js +++ b/src/client/components/VirtualizedTable.js @@ -85,6 +85,10 @@ class VirtualizedTable extends React.PureComponent { cellContent = this.objectListRenderer(cellData); columnIndex = 2; break; + case 'timespan': + cellContent = this.stringListRenderer(cellData); + columnIndex = 3; + break; } } return ( @@ -240,6 +244,12 @@ class VirtualizedTable extends React.PureComponent { cellRenderer={this.columnCellRenderer} width={400} /> + <Column + label="Creation date" + dataKey="timespan" + cellRenderer={this.columnCellRenderer} + width={400} + /> </Table> )} </AutoSizer> -- GitLab