How can i get date and time picker for start date and end date in task editor menu(In General Tab).
Support Forum
You can modify the type of the fields to use https://bryntum.com/docs/gantt/#Core/widget/DateTimeField and adjust some styles:
features : {
taskEdit : {
items : {
generalTab : {
items : {
startDate : {
type : 'datetimefield',
flex : '1 0 100%',
cls : ''
},
endDate : {
type : 'datetimefield',
flex : '1 0 100%',
cls : ''
},
But please keep in mind there is an issue when using the time in the Task Editor. Ticket here: https://github.com/bryntum/support/issues/1685
Cheers,
Pavel
Pavlo Miklashevych
Sr. Frontend Developer
Hi Pavel!
This is really nice!
However, I can see the original StartDateField and EndDateField have some special behavior in that they set the time part of the value according to a calendar. This is lost by replacing the original field entirely by the more generic DateTimeField, right? Same thing for StartDateColumn and EndDateColumn?
Exactly! By that way you define the generic DateTimeField as both Start and End Date fields. You would need to port the special functionality (if you need it) to your extensions and specify the extensions as types.
We have a feature request to add time to the fields: https://github.com/bryntum/support/issues/579