🔨Grid Columns
Last updated
Last updated
💡 The
GridColumn[]
passed to theDataEditor
in thecolumns
property should be memoized to avoid excessive re-rendering. These samples may not do this for the sake of brevity.
There are only two mandatory properties for each GridColumn
: title
and id
. The id should be a stable id and not the index of the column. Additionally a width
property can be provided which represents the width of the column in pixels. If a width is provided the id may be omited. This may change in a future version.
Default header icons are available. They can also be reaplced by passing a new map to the headerIcons
property.
Headers can be provided with individual theme overrides which themes both the header and its column cells.