Presets
Unsaved: 0 rows, 0 cellsEdited cells get a triangle at the top left, and their row number gets a dot. Typing the original value back removes them. Right-click to revert a cell, a row or the selection. “Take in as server values” makes the rewritten values the saved values (cells you have edited keep your values).
Rows 100000 of 100000Columns 11 of 11Sort: —
#
ID
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
10
10
11
11
12
12
13
13
14
14
15
15
16
16
17
17
18
18
19
19
20
20
21
21
Total
Rows 100000 of 100000Columns 11 of 11
Cell —Range —0 cells / 0 rows0 columns
Code for these settings
<SpreadsheetGrid
  rows={rows}
  columns={columns}
  onColumnsChange={setColumns}
  onRowsChange={setRows}
  rowKeyGetter={(row) => row.id}
  height={440}
  theme="class"
  density="standard"
  motion="auto"
  showTopBar={true}
  showBottomBar={true}
  showFilterChipBar={false}
  localeText={localeTextEn} // import { localeTextEn } from '@ishibashi0112/spreadsheet-grid/locales/en'
  enableSorting={true}
  enableColumnFilter={true}
  enableGlobalFilter={true}
  enableColumnMenu={true}
  enableRangeSelection={true}
  enableUndoRedo={true}
  enableClearOnDelete={true}
  readOnly={false}
  dimReadOnlyCells={false}
  showValidationMarks={true}
  // registered in columns: editor: { type: 'date', picker: 'calendar' }
  // ship time in columns: editor: { type: 'time', picker: 'list', step: 30 }
  // checked at in columns: editor: { type: 'datetime', defaultTime: '09:00', timeInput: true }
  // tags in columns: editor: { type: 'select', multiple: true, options: TAGS } (the value is a string[])
  trackChanges
  onChangesChange={({ rowCount }) => setUnsavedRows(rowCount)}
  enableContextMenu
  getContextMenuItems={(params) => params.revertItems ?? []}
  find
  fillHandle
  enableRowSelection={false}
  scrollHint={{ hintColumn: 'name' }}
  columnGroups={[
    { key: 'item', title: 'Product', children: ['name', 'category'] },
    { key: 'order', title: 'Order', collapsible: { keep: ['status'] }, children: ['status', { key: 'amount', title: 'Qty & price', children: ['qty', 'price'] }] },
  ]}
  // in columns, qty: conditionalFormat: { dataBar: {} } / unit price: { colorScale: {} } / status: { chips: { Ordered: 'info', Packing: 'warning', Shipped: 'good', Canceled: 'critical' } }
  // columns: product aggFunc: 'count' / qty aggFunc: 'sum' / unit price aggFunc: 'avg'
  totalRow
/>