Our pure JavaScript Scheduler component


Post by tjmeal »

Hello,

I would like to block the following behaviour attached in the video.

I have found the following https://bryntum.com/products/scheduler/docs/api/Scheduler/feature/EventResize

But that docs show instruction about the grid ? What i am not getting correct ?

Attachments
Screen Recording 2024-10-14 at 15.01.47.mov
(556.21 KiB) Downloaded 11 times

Post by tasnim »

Hey,

Sorry, I don't understand which behavior you're referring to by watching the video. Can you please also describe the behavior you're referring to?

Best regards,
Tasnim

How to ask for help? Please read our Support Policy


Post by tjmeal »

I would like to block the behavior, that Increase-decrease the duration of an event at both ends of the event ( beginning and end).

What i am showing in the video attaching > i don't want to be allowed to do it. ( i want only to be allowed to change the resource, nothing else)

You understand what i mean now ?

Attachments
Screen Recording 2024-10-14 at 15.18.44.mov
(2 MiB) Downloaded 9 times

Post by tasnim »

To prevent that you'd need to disable https://bryntum.com/products/scheduler/docs/api/Scheduler/feature/EventResize feature

You'd need to put it inside of your scheduler config file

eventResizeFeature : false

Best regards,
Tasnim

How to ask for help? Please read our Support Policy


Post by mats »

It's as simple as:

const scheduler         = new Scheduler({
    appendTo : targetElement,
    features : {
         eventResize : false 
   }
  
});

Post by tjmeal »

Hello and thanks both for your reply,

Because i need that elsewhere aswell, i am using the following config > how can i use the last implementation Mr. Mats suggusted > Because using my code > features : {} its not working ?

const schedulerConfig = {
  startDate: new Date(),
  endDate: new Date(new Date().getTime() + 24 * 60 * 60 * 1000),
  flex: 3,
  tickSize: 30,
  allowOverlap: true,
  eventStyle: 'colored',
  snap: true,
  }

Post by tasnim »

Hey tjmeal,

For React you should use

const schedulerConfig = {
	...
	eventResizeFeature : false
}

And for Pure JS

features : {
	eventResize : false
}

Please check the guide too https://bryntum.com/products/scheduler/docs/guide/Scheduler/integration/react/guide#features

Best regards,
Tasnim

How to ask for help? Please read our Support Policy


Post by tjmeal »

Perfect, thank you so much.


Post Reply