Skip to content

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.

string[]

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.

number

DataRow[]

boolean

Element