Constructor
new TacoTableHeader(props)
Parameters:
Name | Type | Description |
---|---|---|
props |
Object | React props |
Properties:
Name | Type | Description |
---|---|---|
column |
Object | The column definition |
columnGroup |
Object | Column group definition:
|
highlightedColumn |
Boolean | Whether this column is highlighted or not |
onClick |
function | Callback when clicked. Gets passed |
sortableTable |
Boolean | Whether the table is sortable or not |
sortDirection |
Boolean | The current sort direction of this column -- null or undefined if not sorted |
- Source:
Extends
- React.Component
Methods
(private) handleClick()
Handler for when the header is clicked. Calls onClick(column.id)
.
- Source:
render() → {React.Component}
Main render method
- Source:
Returns:
- Type
- React.Component