I have a grid that is bound to a data-source with a schema - if I defined the grid editable, and the data-source has a schena that defines what fields are editable, and how to edit them.
If I define the type of a field as string - I get an editor that is one line only. Is there a way to define an editor that allows multiple lines (either dynamically when recognizing an enter key, or with a pre-defined line count)?
My current schema looks like:
schema: {
model: {
id: "ID",
fields: {
ID :{editable: false, nullable: false},
Time: { editable: false, nullable: true },
Monday: { type: "string" },
Tuesday: { type: "string" },
Wednesday: { type: "string" },
Thursday: { type: "string" },
Friday: { type: "string" },
Saturday: { type: "string" },
Sunday: { type: "string" }
}
} // model
If I define the type of a field as string - I get an editor that is one line only. Is there a way to define an editor that allows multiple lines (either dynamically when recognizing an enter key, or with a pre-defined line count)?
My current schema looks like:
schema: {
model: {
id: "ID",
fields: {
ID :{editable: false, nullable: false},
Time: { editable: false, nullable: true },
Monday: { type: "string" },
Tuesday: { type: "string" },
Wednesday: { type: "string" },
Thursday: { type: "string" },
Friday: { type: "string" },
Saturday: { type: "string" },
Sunday: { type: "string" }
}
} // model