Page 1 of 1

[REACT] Add breaks within an event.

Posted: Thu Mar 23, 2023 3:26 pm
by elcr

Hi everyone, I am trying to get the results in the picture below. Idea is that I need to add dynamic breaks, within an event. I saw one example about nested events, but that does not quite fill my needs.

Image url: https://ibb.co/N6BMJSq

Thanks


Re: [REACT] Add breaks within an event.

Posted: Thu Mar 23, 2023 4:41 pm
by mats

That looks pretty much just like the nested events feature, what do you need that isn't included here: https://bryntum.com/products/scheduler/examples/nestedevents/ ?


Re: [REACT] Add breaks within an event.

Posted: Thu Mar 23, 2023 4:54 pm
by elcr

This example, look similar, but it is the reverse of what I want. If you try to add an event to the example, it first adds a grey-colored row, then you should add you actual events that you want to do. I want to make the opposite. I want to be able to create an event, like normal, then have the option to add a break within a certain time.
I suppose I can achieve this with some modification(workaround) to the nested event, but I was wondering if there was a more direct approach.


Re: [REACT] Add breaks within an event.

Posted: Fri Mar 24, 2023 7:15 am
by tasnim

Re: [REACT] Add breaks within an event.

Posted: Fri Mar 24, 2023 3:07 pm
by mats

You'll need to adapt nested events (in Scheduler Pro) and have your breaks be represented by a new custom event (set some state variable in your data). It should be quite straightforward to do it exactly like your screenshot. We could also offer to implement it for you as part of our Professional Services, details here: https://www.bryntum.com/services/


Re: [REACT] Add breaks within an event.

Posted: Mon Mar 27, 2023 11:47 am
by elcr

Yes i will try that, thanks