Search
Item.subject Property
See Also
 






Gets or sets the text rendered in the header for this Item by the scheduling control.

Namespace: MindFusion.Scheduling
File: Item.js

 Syntax

JavaScript  Copy Code

get subject() {}

 Property Value

A String that specifies the text.

 Example

The following code creates schedule Item-s and sets the subject of each item to “Yoga”.

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