Discuss anything related to web development but no technical support questions


Post by shaveta »

Hi,

I am trying to add fields to the Event Form each time user clicks and popup launch. For each event i have different set of fields.

As per documentation on the basis of event type we can have different forms using "fieldsPanelConfig".
https://www.bryntum.com/docs/calendar/# ... ventEditor,

Is it possible to add fields to form dynamically on event/cell click or double click event?

Post by pmiklashevich »

Hello.

Event Editor component is not so flexible. It's better to create your own forms and handle them manually.

Here some info might help you:

The event editor is a complex component which is built from 4 classes:
Sch.plugin.EditorWindow - main plugin - represents the window which pops up;
Sch.widget.EventEditor - widget/plugin which carries fields, loading, saving;
Sch.plugin.EventEditor - extends the Sch.widget.EventEditor
Sch.plugin.mixin.Editor - mixed up to Sch.plugin.EventEditor

You can implement your own Event Editor based on our sources.
Copy these classes to your own folder/namespace and change them in the way you need.

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply