Data Table Header
Parameters
Stable unique identifier for this column. Also used for sorting.
Text label shown in the default header when headerContent is not provided.
Extractor invoked for each row item to produce a displayable value.
Whether this column supports sorting via the built-in header interactions.
Fixed width for the column. If null, the column is laid out with weight to fill space.
Horizontal alignment for header text and default cell text.
When true, the column is frozen (pinned) to the left and does not scroll horizontally. Frozen columns must have an explicit width; DataTable throws if one does not.
When false, the column is excluded from rendering. Defaults to true.
Maximum lines for default text rendering. Defaults to Int.MAX_VALUE.
Text overflow strategy for default text rendering.
Optional custom comparator for sorting. When provided, takes precedence over the default Comparable-based sort.
Optional nested headers. When provided, this header becomes a group: it is drawn as a band above its children, spanning them, and only the leaf headers render as actual columns. A group's own value, width, and sorting settings are ignored — it takes its width from the leaves beneath it, which must be either all fixed-width or all weighted.
Optional composable to fully customize the header cell for this column.
Optional composable to fully customize each body cell for this column.