Column descriptor for AddDataGrid.

interface DataGridColumn {
    key: string;
    title: string;
    type: DataGridColumnType;
    buttonText?: string;
}

Properties

key: string

Unique key used to read row data via rowData[key].

title: string

Display name shown in the column header.

Rendering type: checkbox for boolean cells, text for editable text, button for action buttons.

buttonText?: string

Button label text. Only used when type is button.