Search
Item.locked Property
See Also
 






Gets or sets a value indicating whether users are forbidden to modify this item.

Namespace: MindFusion.Scheduling
File: Item.js

 Syntax

JavaScript  Copy Code

get locked() {}

 Property Value

Boolean. true if the Item is locked and users cannot modify it; otherwise false.

 Example

The following code creates a new Item and locks it to avoid any modification of it:

JavaScript  Copy Code

 var p = MindFusion.Scheduling;
                                 
   var item = new p.Item();

   item.subject = "conference";
  
   item.startTime = date;
   item.endTime = p.DateTime.addDays(date.clone(),1);
   item.allDayEvent = true;

   // lock the item to disable interactive drag and resize
   item.locked = true;

 See Also