selectAllow
Exact programmatic control over where the user can select.
function(selectInfo)
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 |
Date. A date indicating the beginning of the selection. |
---|---|
end |
Date. A date indicating the end of the selection. In line with the discussion about the Event object, it is important to stress that the |
startStr |
String. An ISO8601 string representation of the start date. It will have a timezone offset similar to the calendar’s timeZone e.g. |
endStr |
String. An ISO8601 string representation of the end date. It will have a timezone offset similar to the calendar’s timeZone e.g. |
allDay |
Boolean. |
resource |
Resource object. If the current view is a resource view, this is the Resource object that was selected. This is only available when using one of the resource plugins. |