Gets or sets whether users are allowed to interact with this item.
Namespace: MindFusion.Diagramming
File: DiagramItem.js
JavaScript Copy Code |
---|
get locked() {} |
Boolean
true to prevent interaction, or false otherwise. Default value is false.
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.
MindFusion.Diagramming for JavaScript Programmer's Guide | © 2024 MindFusion |