Search
Item.details Property
See Also
 






Gets or sets the description rendered for this Item by the scheduling control.

Namespace: MindFusion.Scheduling
File: Item.js

 Syntax

JavaScript  Copy Code

get details() {}

 Property Value

String that specifies the details.

 Example

The following code creates schedule Item-s and sets a special details message to each 5th of them.

JavaScript  Copy Code

// add some items to the schedule items collection
for (var i = 0; i < 15; i++)
{
 item = new p.Item();
  item.startTime = p.DateTime.addMinutes(date, 2);
 item.endTime = p.DateTime.addHours(item.startTime, 2);
 item.subject = "Yoga";

 // add a custom css class to some items
 if (i % 5 == 0)
 {
  item.cssClass = "myItemClass";
  item.details = "It is of utmost importance!"
 }
 calendar.schedule.items.add(item);
}

 See Also