Gets or sets the string identifier of this item.
Namespace: MindFusion.Scheduling
File: Item.js
Used by the getItemById method of schedule.
The following code creates a new item for a birthday celebration that takes the whole present day. It provides the item with an id and then shows how to search for this item.
JavaScript Copy Code |
---|
var p = MindFusion.Scheduling; var date = p.DateTime.today(); // create a new item var bItem = calendar.schedule.getItemById("birthday"); |