Search Options

Explore this complete list of basic Calendar.js search options for customizing your calendar searches.

Example

calendarInstance.setSearchOptions( {
    enabled: true
} );

Options

Type:Name:Description:
booleanenabledStates if search is enabled (defaults to true).
stringlastSearchTextStates the last search text that was used (defaults to "").
booleannotStates if the search should be a not search (defaults to false).
booleanmatchCaseStates character case searching is strict (defaults to false).
booleanshowAdvancedStates if the advanced options should be shown (defaults to false).
booleansearchTitleStates if the "title" property for the event should be searched (false to true).
booleansearchLocationStates if the "location" property for the event should be searched (false to false).
booleansearchDescriptionStates if the "description" property for the event should be searched (false to false).
booleansearchGroupStates if the "group" property for the event should be searched (false to false).
booleansearchUrlStates if the "url" property for the event should be searched (false to false).
booleanstartsWithStates if the search should run a "starts with" check (defaults to false).
booleanendsWithStates if the search should run an "ends with" check (defaults to false).
booleancontainsStates if the search should run a "contains with" check (defaults to true).
numberleftStates the left position of the dialog (defaults to null).
numbertopStates the top position of the dialog (defaults to null).
string[]historyStates the dropdown search history that should be displayed (used previously, defaults to []).