Our powerful JS Calendar component


Post by epotapov »

The event created with eventedit doesn't enforce an event name or provide a default event name.


Post by Animal »

You mean an event created with the autoCreate gesture?

It takes its name from the autoCreate config/property.


Post by epotapov »

when I set the default name it doesn't set it when I create an event.


Post by mats »

Can you please share your code?


Post by epotapov »

I just used this configuration for a calendar:

autoCreate : {
        newName : 'New Event'
},

Post by marcio »

Hey epotapov,

I tried that config on our demo here https://bryntum.com/products/calendar/examples/basic/ and it worked just fine.

Could you please confirm that I followed the right steps to reproduce the behavior in the attached video?

Attachments
Screen Recording 2024-07-15 at 18.15.42.mov
(6.07 MiB) Downloaded 23 times

Best regards,
Márcio


Post by epotapov »

Yes, that works for me, but it doesn't populate when I save the event without changing the name. It currently saves without the default text.


Post by Animal »

That's not how it works.The Calendar doesn't make the user erase its opinion.

It is just informational text to show the user what is happening:

Screenshot 2024-07-16 at 06.49.53.png
Screenshot 2024-07-16 at 06.49.53.png (265.34 KiB) Viewed 312 times

We probably need to fire an event when the edit has been started so that it can be postprocessed by applications.


Post by Animal »

Here's a ticket for postprocessing an event edit startup: https://github.com/bryntum/support/issues/9579


Post by Animal »

In fact an event exists to do this. It's even hard for us to know the complete API.

https://bryntum.com/products/calendar/docs/api/Scheduler/feature/EventEdit#event-beforeEventEditShow

Screenshot 2024-07-23 at 08.59.55.png
Screenshot 2024-07-23 at 08.59.55.png (287.83 KiB) Viewed 275 times

Post Reply