Hi,
Is there a way to manage recurrent events in Bryntum Gantt, through a similar popup than the event editor in the Bryntum Scheduler when enableRecurringEvents is set to true?
Many thanks,
Thank you for your reply.
Is it possible to include RecurrenceCombo and RecurrenceLegendButton to the Gantt taskEditor, in order to retrieve recurrence parameters, including the RecurrenceModel, and use it to manage recurrent events with our own logic ?
Here, a first try to add these two fields in our task editor :
private buildTaskEditorMenu() {
return {
disabled: true,
items: {
generalTab: {
items: {
divider: false,
startDate: {
type: 'DateTimeField',
flex: '1 0 100%',
weekStartDay: 1,
showWeekColumn: true,
dateField: {
picker: {
showWeekColumn: true
}
}
},
endDate: {
type: 'DateTimeField',
flex: '1 0 100%',
weekStartDay: 1,
dateField: {
picker: {
showWeekColumn: true
}
}
},
recurrenceCombo: {
type: 'RecurrenceCombo'
},
editRecurrenceButton: {
type: 'RecurrenceLegendButton'
}
}
}
}
};
}
Thanks.
Basically you're right. There are few notes though:
For example, you can try in Gantt Basic demo:
import '../../lib/Scheduler/view/recurrence/field/RecurrenceCombo.js';
import '../../lib/Scheduler/view/recurrence/RecurrenceLegendButton.js';
....
new Gantt({
features: {
taskEdit: {
items: {
generalTab: {
items: {
divider: false,
startDate: {
type: 'datetimefield',
flex: '1 0 100%',
cls: '',
weekStartDay: 1,
showWeekColumn: true,
dateField: {
picker: {
showWeekColumn: true
}
}
},
endDate: {
type: 'datetimefield',
flex: '1 0 100%',
cls: '',
weekStartDay: 1,
dateField: {
picker: {
showWeekColumn: true
}
}
},
recurrenceCombo: {
type: 'recurrencecombo'
},
editRecurrenceButton: {
type: 'recurrencelegendbutton',
flex: 1
}
}
}
}
}
},
Even if our default UI components do not fit your needs, you can always develop the UI you need and add logic you want. Cheers!
Pavlo Miklashevych
Sr. Frontend Developer
Showing RecurrenceEditor is implemented in RecurringEventEdit mixin. This functionality is not supported by Gantt. We can help you with the implementation only as a part of professional services: https://www.bryntum.com/services/
Pavlo Miklashevych
Sr. Frontend Developer