Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / ToolbarOptions

Interface: ToolbarOptions

toolbar as an object: pick its parts. Every part defaults to on, so toolbar={{ export: false }} is the full toolbar without the export menu, and toolbar: true stays the whole toolbar.

Your own controls go in toolbarItemsBefore (at the start, before the search box) and toolbarItemsAfter (at the end, after the grid's buttons).

Properties

chart?

optional chart?: boolean

The Chart button the Enterprise grids add when charting is on. Default true. false leaves it out — for an app that opens the chart from a button of its own (Tekax, 2026-10-29).


columns?

optional columns?: boolean

The Columns button. Default: the grid's toolbarColumnChooser setting (on in React, off in plain JavaScript), which this overrides.


export?

optional export?: boolean

The export menu (CSV, plus Excel and PDF where the edition and toolbarExcel / toolbarPdf allow). Default true.


optional search?: boolean | ToolbarSearchOptions

The quick search box, or its settings. Default true.