logo

FullCalendar

Calendar::select

A method for programmatically selecting a period of time.

calendar.select( start, [ end ] )
-or-
calendar.select( { start, end, allDay, resourceId } )

The method has two different signatures: one that accepts individual start/end arguments and another that accepts an object with keys.

start and end are parsable Dates.

The end parameter is exclusive, meaning if you want to your last full-day selection to be Thursday, then specify Friday.

The end parameter is optional.

If the Scheduler plugin is installed, the resourceId argument can be a Resource Object’s ID that you would like to select. If the current view supports resources but this value is not specified, the given range is selected across all resources.