Function: DataGrid()
DataGrid(
__namedParameters):Element
Interactive table for a settled statement result, built on
@tanstack/react-table over AppKit’s Table primitives so it
matches the rest of the chat. A toolbar in the card header carries
the row count, a column show/hide menu, and a CSV export of the
visible columns in the current sort order. Header cells are sort
toggles (click to cycle asc -> desc -> none): the active column
shows a direction arrow, idle columns a faded up/down glyph. All
state is client-side - the rows arrive once from DataSlot.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”columns
Section titled “columns”string[]
humanizeHeaders?
Section titled “humanizeHeaders?”boolean = false
Title-Case raw identifier column names for display (statement results). Off for markdown tables, whose headers are already human-authored and would be mangled by the tokenizer.
rowCount
Section titled “rowCount”number
DataRow[]
truncated
Section titled “truncated”boolean
Returns
Section titled “Returns”Element