ok, it does work to setup the date time picker to work with the cells but somehow my data is not shown when loaded and when using the picker to set the date time it does not spawn an event. (at least not "cellEdited").
current code:
},
{
"title": "Alert Date",
"field": "requestDateTime",
"sorter": "date",
"width": 150,
"headerFilter": "input",
"editor": "datetime",
"editorParams": {
"format": "YYYY-MM-DD HH:mm:ss",
"inputFormat":"YYYY-MM-DD HH:mm:ss",
"outputFormat":"YYYY-MM-DD HH:mm:ss"
},
"formatter": "datetime",
"formatterParams": {
"format": "YYYY-MM-DD HH:mm:ss"
}
},
{
"title": "End Date",
"field": "observationEndTime",
"sorter": "date",
"width": 150,
"headerFilter": "input",
"editor": "datetime",
"editorParams": {
"format": "YYYY-MM-DD HH:mm:ss",
"inputFormat":"YYYY-MM-DD HH:mm:ss",
"outputFormat":"YYYY-MM-DD HH:mm:ss"
},
"formatter": "datetime",
"formatterParams": {
"format": "YYYY-MM-DD HH:mm:ss"
}
},
EDIT:
removing this stuff fixes the issues with the display:
"formatter": "datetime",
"formatterParams": {
"format": "YYYY-MM-DD HH:mm:ss"
but still the output with the dt-picker is (german) language format ("DD-MM-YYYY HH:mm:ss").
I guess that is the reason for not getting the "cellEdited" event. So I think if I just can fix this it should work. But I ve no clue how to get "YYYY-MM-DD HH:mm:ss" back.
here the complete initial ui-tabulator code for anyone who wants to try / help:
{
"height": "378px",
"layout": "fitDataFill",
"movableColumns": true,
"responsiveLayout": "collapse",
"pagination": true,
"paginationSize": 10,
"selectableRows": 1,
"index": "id",
"columns": [
{
"field": "id",
"visible": false
},
{
"title": "Alert Date",
"field": "requestDateTime",
"sorter": "date",
"width": 150,
"headerFilter": "input",
"editor": "datetime",
"editorParams": {
"format": "YYYY-MM-DD HH:mm:ss",
"inputFormat":"YYYY-MM-DD HH:mm:ss",
"outputFormat":"YYYY-MM-DD HH:mm:ss"
}
},
{
"title": "End Date",
"field": "observationEndTime",
"sorter": "date",
"width": 150,
"headerFilter": "input",
"editor": "datetime",
"editorParams": {
"format": "YYYY-MM-DD HH:mm:ss",
"inputFormat":"YYYY-MM-DD HH:mm:ss",
"outputFormat":"YYYY-MM-DD HH:mm:ss"
}
}
],
"initialSort": [
{
"column": "requestDateTime",
"dir": "desc"
}
]
}