Header
API
Name & Description | Option(s) | Default |
---|---|---|
| ||
The header's associated column object. |
| |
The depth of the header, zero-indexed based. |
| |
Returns the rendering context (or props) for column-based components like
headers, footers and filters. |
| |
Returns the leaf headers hierarchically nested under this header. |
| |
Returns an event handler function that can be used to resize the header. It can
be used as an: - onMouseDown handler- onTouchStart handlerThe dragging and release events are automatically handled for you. |
| |
Returns the current size of the header. |
| |
Returns the offset measurement along the row-axis (usually the x-axis for
standard tables) for the header. This is effectively a sum of the offset
measurements of all preceding headers. |
| |
The header's associated header group object. |
| |
The unique identifier for the header. |
| |
The index for the header within the header group. |
| |
A boolean denoting if the header is a placeholder header. |
| |
The row-span for the header. |
| |
The header's hierarchical sub/child headers. Will be empty if the header's
associated column is a leaf-column. |
| |
If the header is a placeholder header, this will be a unique header ID that
does not conflict with any other headers across the table. |
|
Type
Column
Description
The header's associated column object.
Type
number
Description
The depth of the header, zero-indexed based.
Type
() => {column: Columnheader: Headertable: Table<TData>}
Description
Returns the rendering context (or props) for column-based components like
headers, footers and filters.
Type
() => Header<TData,any,TColumnMeta>[]
Description
Returns the leaf headers hierarchically nested under this header.
Type
() => (event: unknown,) => void
Description
Returns an event handler function that can be used to resize the header. It can
be used as an:
-
-
The dragging and release events are automatically handled for you.
-
onMouseDown
handler-
onTouchStart
handlerThe dragging and release events are automatically handled for you.
Type
() => number
Description
Returns the current size of the header.
Type
(position?:| false| 'left'| 'right',) => number
Description
Returns the offset measurement along the row-axis (usually the x-axis for
standard tables) for the header. This is effectively a sum of the offset
measurements of all preceding headers.
Type
HeaderGroup<TData>
Description
The header's associated header group object.
Type
string
Description
The unique identifier for the header.
Type
number
Description
The index for the header within the header group.
Type
boolean
Description
A boolean denoting if the header is a placeholder header.
Type
number
Description
The row-span for the header.
Type
Header[]
Description
The header's hierarchical sub/child headers. Will be empty if the header's
associated column is a leaf-column.
Type
string
Description
If the header is a placeholder header, this will be a unique header ID that
does not conflict with any other headers across the table.