|
@@ -40,11 +40,15 @@ export default class Table extends PureComponent<TableProps> {
|
|
|
const tableModel = data || EMPTY_TABLE;
|
|
const tableModel = data || EMPTY_TABLE;
|
|
|
const columnNames = tableModel.columns.map(({ text }) => text);
|
|
const columnNames = tableModel.columns.map(({ text }) => text);
|
|
|
const columns = tableModel.columns.map(({ filterable, text }) => ({
|
|
const columns = tableModel.columns.map(({ filterable, text }) => ({
|
|
|
- Header: text,
|
|
|
|
|
|
|
+ Header: () => <span title={text}>{text}</span>,
|
|
|
accessor: text,
|
|
accessor: text,
|
|
|
className: VALUE_REGEX.test(text) ? 'text-right' : '',
|
|
className: VALUE_REGEX.test(text) ? 'text-right' : '',
|
|
|
show: text !== 'Time',
|
|
show: text !== 'Time',
|
|
|
- Cell: row => <span className={filterable ? 'link' : ''}>{row.value}</span>,
|
|
|
|
|
|
|
+ Cell: row => (
|
|
|
|
|
+ <span className={filterable ? 'link' : ''} title={text + ': ' + row.value}>
|
|
|
|
|
+ {row.value}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ ),
|
|
|
}));
|
|
}));
|
|
|
const noDataText = data ? 'The queries returned no data for a table.' : '';
|
|
const noDataText = data ? 'The queries returned no data for a table.' : '';
|
|
|
|
|
|