Search
Selection.allowMultiple Property
See Also
 






Gets or sets a value indicating whether users are allowed to select more than one date cell at a time.

Namespace: MindFusion.Scheduling
File: Selection.js

 Syntax

JavaScript  Copy Code

get allowMultiple() {}

 Property Value

Boolean. true if multiple selection is enabled, otherwise false.

 Example

Here is how you check if multiple selection is allowed. Note: the code assumes you have initialized a <div> element with id “calendar” in a web page that references the JavaScript file, which contains this code:

JavaScript  Copy Code

// create a new instance of the calendar
var calendar = new p.Calendar(document.getElementById("calendar"));

if (calendar.selection.allowMultiple)
{
    //do something
}

 See Also