edit doc

select

Triggered when a date/time selection is made. See a demo.

function( selectionInfo )

selectionInfo is a plain object with the following properties:

start

a Date indicating the beginning of the selection.

end

a Date indicating the end of the selection.

It is an exclusive value, so if the selection is all-day, and the last day is a Thursday, end will be Friday.

startStr

An ISO8601 string representation of the start date. Will have a time zone offset according to the calendar’s timeZone like 2018-09-01T12:30:00-05:00. If selecting all-day cells, won’t have a time part nor a time zone part, like 2018-09-01.

endStr

Just like startStr, but for the end date.

allDay

true or false whether the selection happened on all-day cells.

jsEvent

The native JavaScript event with low-level information such as click coordinates.

view

The current View Object.

resource

If the current view is a resource-view, the Resource Object that was selected. Must be using one of the resource plugins.