Back to Fullcalendar

selectAllow

_docs-v5/date-clicking-selecting/selectAllow.md

latest738 B
Original Source

Exact programmatic control over where the user can select.

<div class='spec' markdown='1'> function(selectInfo) </div>

This callback will be called for every new potential selection as the user is dragging.

The callback function will receive information about where the user is attempting to select (selectInfo) and must return either true or false.

The selectInfo object will have the following properties:

  • start (a Date)
  • end (a Date)
  • resource (a Resource)(if you are using a [Resource View]({{ site.baseurl }}/pricing))

In line with the discussion about the Event object, it is important to stress that the end date property is exclusive.