Gets or sets the text label displayed by this item.
Namespace: MindFusion.Diagramming
File: DiagramItem.js
JavaScript Copy Code |
---|
get text() {} |
String
A string containing the item's text. The default value is empty string "".
This property defines item's main text content. You can add more text labels by calling the addLabel method, and customize their position and appearance via the various members of returned ItemLabel object.
Users can double-click an item to edit its text interactively when the allowInplaceEdit property is enabled. You can trigger the edit operation from a different event handler by calling beginEdit.
MindFusion.Diagramming for JavaScript Programmer's Guide | © 2024 MindFusion |