(10) Disabled Multiple days event in fullcalendar js | Prevent user from selecting multiple day

Опубликовано: 29 Сентябрь 2024
на канале: Career Development Lab
6,431
28

Disabled Multiple days event in fullcalendar js
Fullcalendar, preventing user from selecting multiple day event

How to prevent user from selecting multiple events in full calendar js
selectAllow(dropInfo, draggedEvent) {
// compare the start DATE and the end DATE (not the time)
return Ext.Date.format(dropInfo.start, 'Y-m-d') === Ext.Date.format(dropInfo.end, 'Y-m-d');
}

selectAllow is responsible for preventing multiple events in full calendar js

selectAllow is any event property which allow us to prevent user to select multi day event

Laravel step by step guide
Laravel full series
Laravel scratch to advance series
Laravel zero to hero course
Laravel guide

The project is stored in the given below directory.
https://github.com/HadiNiazi/fullCale...

If you are facing any problem during development, you can post your queries free of cost at https://solutions.cdlcell.com so our team will respond to you within 24 hours.

If you need paid help from us, please visit https://solutions.cdlcell.com/user/in... to process a contract with us.

* Contact us: [email protected]
* Our website: https://cdlcell.com

* My Twitter:   / hadayatniazi3  
* My FB:   / hadayatniaziofficial  

Follow us on LinkedIn:   / cdlcell  
Follow us on Tiktok:   / cdlcell  
Join us on Instagram:   / cdlcell  
Follow us on Facebook:   / cdlcellpk  

Join our Laravel Developers whatsapp group: https://chat.whatsapp.com/JSA8qZZGVbP...

#php
#phplaravel
#laravel
#webdevelopment
#cdl
#career_development_lab
#hadayatniazi
#coding
#technology