-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can we show start time and stop time in task gantt? #7
Comments
Tasks contain moment which can be formatted and used in labels as you wish. const options = {
taskContent: (task) => `${task.label} ${task.from.format('HH:mm')}`
} or you can update the label in the change event (happens before the actual change in the Gantt store) gantt.api.tasks.on.change(([data]) => {
const task = data.task.model;
// be sure to add the "name" property
task.label = `${task.name} ${task.from.format('HH:mm')}`;
}); |
Very thanks, |
I suggest you find the conflicting tasks in the source collection, move their Gantt exposes a function |
How can we show start time and stop time in task gantt?
Originally posted by @mstsargin in #6 (comment)
The text was updated successfully, but these errors were encountered: