Hi, can i drag an element (label with name of a person) in a slot of calend

Hi, can i drag an element (label with name of a person) in a slot of calendar in TIME_GRID_WEEK view, than add ad entry in the specific hour?

Thank you.

It is theoretically possible to drag and drop things into the FC, but there is currently no server side event handling to that. You could for instance subclass the FC on the client side and add event handling for that plus integrate it in a Java subclass.

https://fullcalendar.io/ shows on the landing page a simple example in the demos section, how it could look like.

Hi Stefan,
Thanks for all !!
““You could for instance subclass the FC on the client side and add event handling for that plus integrate it in a Java subclass.””
Hi, could you explain that more please, or give an example ?

You have to create your own javascript file with a JavaScript class, that extends the basic FullCalendar class.

See for instance the code example “Modifiy FC’s appearance by using a custom class.” as a basis.

Parallel to that you create a subclass in Java importing your custom js file as a JsModule. You can use that Java class then in your code.

For additional information on how to use Template files in Java you’ll have either review the FullCalendar code itself or have a peek into the Flow documentation.