Our pure JavaScript Scheduler component


Post by mils »

The entire app is very big and integrates a lot of REST API calls.
I'll try to prepare a test case and post it here.

Thanks a lot,
Best regards


Post by mils »

here it is, thank you very much

Attachments
TestScheduler.zip
(211.12 KiB) Downloaded 26 times

Post by tasnim »

Sorry for the delay, I've applied the changes in a custom-event-editor demo.
Please check custom-event-editor/src/app/app.component.ts and custom-event-editor/src/app/event-editor/event-editor.component.ts

Here is the attachment

Attachments
custom-event-editor.zip
(279.92 KiB) Downloaded 33 times

Post by Animal »

It seems to me that the solution is

features : {
    eventEdit : false
},
listeners : {
    eventAutoCreated({ eventRecord }) {
        // The event has been added to the store.
        // if your edit process adds on save, then remove it here
        eventRecord.remove();
        // Open some kind of editor
    },
    eventDblClick({ eventRecord }) {
        // Open some kind of editor
    }
}

Post by mils »

I was able to solve following Tasnim example, thanks a lot!
Latest request: how can I get rid of the

Object.newEvent

description of the new event created?
Is there an event I can attach to make the description empty?

Best regards


Post by tasnim »

how can I get rid of the

Object.newEvent

description of the new event created?

Sorry, I don't understand what mean by this line. Could you please elaborate a bit further?


Post by mils »

I mean the description of the new temporary event that appears while dragging and creating a new event,
just before the custom edit dialog appears.
The example is in the attachment, I would like to see the green temporary event without the description.

Best regards

Attachments
bryntum.png
bryntum.png (6.66 KiB) Viewed 226 times

Post by tasnim »

Are you talking about the red one or the blue one that I've highlighted?

Attachments
Screenshot 2022-08-29 163314.png
Screenshot 2022-08-29 163314.png (18.87 KiB) Viewed 225 times

Post by mils »

I'm talking about the blue one, the red one is ok because it disappears when I open my custom dialog editor.

Best regards,


Post by tasnim »

I've attached the custom-editor-demo and changed in the app.component.ts
Please check this below

Attachments
custom-event-editor.zip
(279.94 KiB) Downloaded 27 times

Post Reply