Column descriptor for AddDataGrid.

interface DataGridColumn {
    key: string;
    title: string;
    type: "checkbox" | "text" | "button";
    buttonText?: string;
}

Properties

key: string

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

title: string

Display name shown in the column header.

type: "checkbox" | "text" | "button"

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".