Our pure JavaScript Scheduler component


Post by dimehb »

Is there a way to disable the Scheduler Pro component from fiddling with the duration of appointments?

I'm trying to use the functionality as demonstrated here:
https://bryntum.com/examples/scheduler-pro/resource-non-working-time/

But I don't need the component to recalculate the duration. Just showing the non-working time would be more than enough. Is there a setting that allows me to do just that?


Post by tasnim »


Post by dimehb »

I did. Doesn't say how to disable the recalculation?


Post by tasnim »

Which recalculation? Could you please explain a bit further?


Post by dimehb »

Check out the demo. The duration of an event changes if you drop an appointment on a time slot that's outside of the working hours.


Post by tasnim »

It doesn't increase the real duration, the start date and end will be a further apart because there's a non working time.


Post by dimehb »

That's a technicality. For a user, the duration changes. And that's what I aim to disable.


Post by arcady »

Scheduler Pro uses calendars to schedule events.
If you don't need that but only need to highlight some non-working ranges you can change calendars data to allow scheduling on any day & time

{
    "id" : "mycalendar",
    "unspecifiedTimeIsWorking" : true
}

and use https://www.bryntum.com/docs/scheduler-pro/api/Scheduler/feature/ResourceTimeRanges feature (its demo: https://www.bryntum.com/examples/scheduler/resourcetimeranges/).
Just provide non-working ranges to the feature store and they will be highlighted.


Post by dimehb »

Perfect, that's it. Thanks!


Post Reply