Grid type date options

in suite.js change this:

this._calendar = new ts_calendar_1.Calendar(null, { dateFormat: col.format});

to this:

this._calendar = new ts_calendar_1.Calendar(null, { …col.options, dateFormat: col.format });

in grid config columns now you can define the options:

{
id: “datetime”,
header: [{
text: “DateTime”,
align: “left”
}],
type: “date”,
dateFormat: “%d.%m.%Y %H:%i:%s”,
options: { timePicker: true, timeFormat: 24},
align: “left”
},
{
id: “date”,
header: [{
text: “Date”,
align: “left”
}],
type: “date”,
dateFormat: “%d.%m.%Y”,
align: “left”
},
{
id: “time”,
header: [{
text: “Time”,
align: “left”
}],
type: “date”,
editorType: “datePicker”,
dateFormat: “%H:%i:%s”,
options: { mode: “timepicker”, timePicker: true, timeFormat: 24 },
align: “left”
},
{
id: “year”,
header: [{
text: “Year”,
align: “left”
}],
type: “date”,
editorType: “datePicker”,
dateFormat: “%Y”,
options: { mode: “year” },
align: “left”
}