Preview a grid
svgrid_previewRender a REAL, interactive SvGrid in the conversation - sortable, filterable, scrollable - from columns and rows you pass, or from a demo id. Use it to show the user what a grid will look like before they build it, and after svgrid_check_code to demonstrate the result. In clients without UI support it returns a text summary instead, so it is always safe to call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Rows to display. Required unless `demo` is set. Keep it under a few hundred for a preview. | |
| demo | No | Preview a shipped demo instead, by id (e.g. "11-stock-market"). Its source is returned as text; find ids with svgrid_search. | |
| title | No | Caption shown above the grid. | |
| columns | No | Column definitions, e.g. [{ "field": "name", "header": "Name", "width": 160 }]. Required unless `demo` is set. | |
| groupBy | No | Group by these column ids. | |
| pageable | No | Pagination footer. | |
| sortable | No | Sortable headers. Default true. | |
| filterable | No | Filtering. Default true. |