Search
Item.allDayEvent Property
See Also
 






Gets or sets a value indicating whether the item represents an all day event.

Namespace: MindFusion.Scheduling
File: Item.js

 Syntax

JavaScript  Copy Code

get allDayEvent() {}

 Property Value

Boolean. true if this is a whole day event; otherwise false.

 Example

The following code creates a new item for a birthday celebration that takes the whole present day:

JavaScript  Copy Code

var p = MindFusion.Scheduling;

var date = p.DateTime.today();

// create a new item
var item = new p.Item();
item.subject = "Birthday Celebration";   
item.startTime = date;
item.endTime = p.DateTime.addDays(date.clone(),1);
item.allDayEvent = true;

 See Also