Interface ListGridConstructorOptions<T>

interface ListGridConstructorOptions<T> {
    allowRangePaste?: boolean;
    colCount?: undefined;
    dataSource?: DataSource<T>;
    defaultColWidth?: string | number;
    defaultRowHeight?: number;
    disableColumnResize?: boolean;
    font?: string;
    frozenColCount?: number;
    frozenRowCount?: undefined;
    header?: HeadersDefine<T>;
    headerRowHeight?: number | number[];
    keyboardOptions?: DrawGridKeyboardOptions;
    layout?: LayoutDefine<T>;
    parentElement?: null | HTMLElement;
    records?: T[];
    rowCount?: undefined;
    theme?: string | ThemeDefine;
    trimOnPaste?: boolean;
    underlayBackgroundColor?: string;
}

Type Parameters

  • T

Hierarchy

  • DrawGridConstructorOptions
    • ListGridConstructorOptions

Properties

allowRangePaste?: boolean

If set to true to allow pasting of ranges. default false

colCount?: undefined

Cannot be used with ListGrid.

dataSource?: DataSource<T>

Records data source

defaultColWidth?: string | number

Default grid col width. default 80

defaultRowHeight?: number

Default grid row height. default 40

disableColumnResize?: boolean

Disable column resizing

font?: string
frozenColCount?: number
frozenRowCount?: undefined

Cannot be used with ListGrid.

header?: HeadersDefine<T>

Simple header property

headerRowHeight?: number | number[]

Header row height(s)

keyboardOptions?: DrawGridKeyboardOptions
layout?: LayoutDefine<T>

Layout property

parentElement?: null | HTMLElement

Canvas parent element

records?: T[]

Simple records data

rowCount?: undefined

Cannot be used with ListGrid.

theme?: string | ThemeDefine

Theme

trimOnPaste?: boolean

If set to true, trim the pasted text on pasting.

underlayBackgroundColor?: string