Search
DiagramItem.locked Property
See Also
 





Gets or sets whether users are allowed to interact with this item.

Namespace: MindFusion.Diagramming
Package: DiagramItem.js

 Syntax

JavaScript  Copy Code

get locked() {}
set locked(value) {}

 Property Value

Boolean

true to prevent interaction, or false otherwise. Default value is false.

 Remarks

A locked item cannot be selected, moved or resized interactively. Additionally, its text cannot be edited in-place.

Locked nodes still can be moved or resized programmatically through their bounds property. Positions of locked links' control points can be changed programmatically too - through their controlPoints collections.

Locked items positions can be changed also by the automatic layout algorithms. To prevent automatic layout methods from changing positions of individual items, set the ignoreLayout property of DiagramItem to true.

 See Also