Open figofan opened 4 years ago
Thank you for raising an issue. We will try and get back to you as soon as possible.
Please make sure you have filled out issue respecting our form in English and given us as much context as possible. If not, the issue will be closed or not replied.
If the time range of the schedule is within 24 hours, it will be displayed on the time grid. The TOAST UI Calendar team will discuss it.
If the time range of the schedule is within 24 hours, it will be displayed on the time grid. The TOAST UI Calendar team will discuss it.
thank you!
I'll keep poking around the source code to see if I can get it working, I'd appreciate it if someone can point out which particular file to start with.
/**
@returns {string} group key */ this.groupFunc = options.groupFunc || function(viewModel) { var model = viewModel.model;
if (viewModel.model.isAllDay) {
return 'allday';
}
if (model.category === 'time' && (model.end - model.start > datetime.MILLISECONDS_PER_DAY)) {
return 'allday';
}
return model.category;
};
I think I may have just found the solution to my problem, it's the function groupFunc in Base.js that treats time schedule as all day schedule when its time range exceeds 24 hrs. IMO, The logic hurts the flexibility to show time schedule in time grid instead of day grid, after all the property isAllDay has offered the option to treat time schedule as all day schedule.
Maybe I'm not seeing the whole picture here, I suggest you guys remove this logic. I'd be happy to submit a pull request for this if you guys agree.
@figofan any news ?
The solution proposed doesn't work ... :'(
Summary
It seems like a time schedule that expands multiple days gets converted to all day schedule automatically, is there a way to prevent this behavior? I'd like the time schedule always to display in the time grid in week view, no matter how many days it expands. As in the screenshot, how to get time schedule a to display like time schedule b?
I've tried returning false from datetime.hasMultiDates, but it doesn't seem to make any difference. Can someone shed some light on how I can achieve this?
Screenshots
Version
1.12.13
Additional context
Add any other context about the problem here.