sort
This commit is contained in:
parent
2cf42fd09a
commit
da7bbf898c
|
@ -42,7 +42,7 @@ export class SortTableHeaderRow extends React.Component<Props, State> {
|
|||
|
||||
arr.push(
|
||||
<Table.HeaderCell key={idx++} textAlign={'center'}
|
||||
sorted={this.state.column === colValue ? this.state.direction : null}
|
||||
sorted={this.state.column === colValue ? this.state.direction : 'ascending'}
|
||||
onClick={this.handleColumnSort(colValue)}>{colValue}</Table.HeaderCell>);
|
||||
}
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ export class HistoryList extends React.Component<Props, State> {
|
|||
let cols:string[] = ['No.', 'Probe', 'Type', 'Message', 'Created At', 'Created By'];
|
||||
let historyList: JSX.Element = (
|
||||
<Container fluid>
|
||||
<Table celled selectable striped>
|
||||
<Table celled selectable striped sortable fixed>
|
||||
<Table.Header>
|
||||
<SortTableHeaderRow columnList={cols} onHeaderColumnClick={this.handleSort} />
|
||||
{/*<Table.Row>*/}
|
||||
|
|
Loading…
Reference in New Issue
Block a user