Our pure JavaScript Scheduler component


Post by jenniferht »

Hi,
After using eventDragCreate, the default green color is applied, but I'd like to alter the color and adjust event visibility using custom CSS styles.

https://bryntum.com/products/scheduler/examples/basic/


Post by tasnim »

Hi,

You could achieve it by using this CSS rule

.b-sch-event {
    background: #e39d00;
}

Best regards,
Tasnim


Post by jenniferht »

Hi,
thanks working fine.

I would like to delete the reservation that was created without any information, such as the name of the resource or event name. I want the flexibility to remove it from any location on the screen.

u can check the below videos

Attachments
simplescreenrecorder-2024-02-28_17.34.21.mp4
need like this to remove the draged event
(742.34 KiB) Downloaded 29 times
simplescreenrecorder-2024-02-28_17.30.15.mp4
here it is not removing
(1.81 MiB) Downloaded 31 times

Post by tasnim »

Hi,

It should be removed if nothing is saved. Any chance to get a test case or the steps to reproduce the issue?


Post by jenniferht »

hi,
if I have set the below to true it is working but I don't need the menu on eventdragcreate :

eventEdit: true, 
            eventMenu: true, 

Post by tasnim »

Hi,

The eventMenu will show up when you right click on an event
https://bryntum.com/products/scheduler/docs/api/Scheduler/feature/EventMenu

Did you mean the event editor?

Sorry, if I misunderstood.

Attachments
msedge_jCNO7Y8lmQ.png
msedge_jCNO7Y8lmQ.png (16.5 KiB) Viewed 145 times

Post by jenniferht »

Hi,
i have added screenshot

Attachments
Screenshot from 2024-02-29 10-46-15.png
Screenshot from 2024-02-29 10-46-15.png (52.26 KiB) Viewed 106 times

Post by tasnim »

Hi,

If I understood correctly, you could use this event to achieve it https://bryntum.com/products/scheduler/docs/api/Scheduler/feature/EventEdit#event-beforeEventEdit

scheduler.on('beforeEventEdit', ({ eventRecord }) => {
    return !eventRecord.isCreating;
})

Post Reply