An options object for initializing a data grid.

interface IOptions {
    cellRenderers?: RendererMap;
    copyConfig?: CopyConfig;
    defaultRenderer?: CellRenderer;
    defaultSizes?: DefaultSizes;
    headerVisibility?: HeaderVisibility;
    minimumSizes?: MinimumSizes;
    stretchLastColumn?: boolean;
    stretchLastRow?: boolean;
    style?: Style;
}

Properties

cellRenderers?: RendererMap

The cell renderer map for the data grid.

The default is an empty renderer map.

copyConfig?: CopyConfig

The copy configuration data for the grid.

The default is DataGrid.defaultCopyConfig.

defaultRenderer?: CellRenderer

The default cell renderer for the data grid.

The default is a new TextRenderer.

defaultSizes?: DefaultSizes

The default sizes for the data grid.

The default is DataGrid.defaultSizes.

headerVisibility?: HeaderVisibility

The header visibility for the data grid.

The default is 'all'.

minimumSizes?: MinimumSizes

The minimum sizes for the data grid.

The default is DataGrid.minimumSizes.

stretchLastColumn?: boolean

Whether to stretch the last column of the grid.

The default is false.

stretchLastRow?: boolean

Whether to stretch the last row of the grid.

The default is false.

style?: Style

The style for the data grid.

The default is DataGrid.defaultStyle.