Documentation

API

A note on col/row values

Grid always passes col/row coordinate pairs in the format [col, row] and never [row, col]. This is to more accurately match an [x, y] world, even though most english speakers will tend to say "row col".

API Overview

Details of each property can be found by clicking on it.

Types

NameDescription
GridColumnA column description. Passed to the columns property.
GridCellThe basic interface for defining a cell
GridSelectionThe most basic representation of the selected cells in the data grid.
ThemeThe theme used by the data grid to get all color and font information

DataEditorRef

NameDescription
appendRowAppend a row to the data grid.
emitUsed to emit commands normally emitted by keyboard shortcuts.
focusFocuses the data grid.
getBoundsGets the current screen-space bounds of a desired cell.
remeasureColumnsCauses the columns in the selection to have their natural sizes recomputed and re-emitted as a resize event.
scrollToTells the data-grid to scroll to a particular location.
updateCellsInvalidates the rendering of a list of passed cells.