editorType
Optional. Defines the type of an editor used in a column
Usage
editorType?: "input" | "select" | "datePicker" | "combobox" | "multiselect" | "textarea";
- for the column
type: string
:- with the
autoHeight
configuration option: the "textarea" editor type - without the
autoHeight
configuration option: the "input" editor type
- with the
- for the column
type: date
: the "datePicker" editor type - for the column
type: number
: the "input" editor type
Example
const grid = new dhx.Grid("grid_container", {
columns: [
{ id: "project", header: [{ text: "Project" }], editorType: "textarea" },
// more columns configuration objects
],
editable: true,
autoHeight: true,
// more options
});
Related article: Types of column editor
Related sample: Grid. Editing with different editors (combobox, select, multiselect, boolean, date, number)