TacoTableHeader

TacoTableHeader

React component for rendering table headers, uses <th>.

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: { header:String, columns:[colId1, colId2, ...], className:String}

highlightedColumn Boolean

Whether this column is highlighted or not

onClick function

Callback when clicked. Gets passed column.id

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