Page 2 of 3

Re: [VUE 2] Get rid of empty event on event create

Posted: Fri Aug 12, 2022 1:19 pm
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


Re: [VUE 2] Get rid of empty event on event create

Posted: Fri Aug 12, 2022 2:12 pm
by mils

here it is, thank you very much


Re: [VUE 2] Get rid of empty event on event create

Posted: Mon Aug 15, 2022 6:16 am
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


Re: [VUE 2] Get rid of empty event on event create

Posted: Mon Aug 15, 2022 6:38 am
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
    }
}

Re: [VUE 2] Get rid of empty event on event create

Posted: Mon Aug 29, 2022 11:09 am
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


Re: [VUE 2] Get rid of empty event on event create

Posted: Mon Aug 29, 2022 11:54 am
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?


Re: [VUE 2] Get rid of empty event on event create

Posted: Mon Aug 29, 2022 12:09 pm
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


Re: [VUE 2] Get rid of empty event on event create

Posted: Mon Aug 29, 2022 12:34 pm
by tasnim

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


Re: [VUE 2] Get rid of empty event on event create

Posted: Mon Aug 29, 2022 1:30 pm
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,


Re: [VUE 2] Get rid of empty event on event create

Posted: Tue Aug 30, 2022 6:18 am
by tasnim

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