Articles in this section

How to enable annotation edit mode after dropping a node from the palette to the Vue Diagram canvas?

This article explains how to enable annotation edit mode after dropping a node from the palette to the Vue Diagram canvas. To enable annotation edit mode after a node is dropped from the symbol palette onto the Vue Diagram, you can follow these steps:

Configure the Drop Event:

• Handle the drop event, which is triggered when an element is dropped from the symbol palette onto the diagram canvas.

Call the startTextEdit Method:

• Within the drop event handler, call the startTextEdit method of the diagram.
• The startTextEdit method initiates the editing mode for the associated annotation of the dropped node or connector.
• This allows users to directly modify the text of the dropped node or connector.

Refer to the code sample of the above steps:

 <ejs-diagram style='display:block' ref="diagramObject" id="diagram" :width='width' :height='height' :drop='drop'></ejs-diagram>

function drop(arg) {
diagram.startTextEdit();
};

Refer to the working sample for additional details and implementation: Sample

Conclusion

We hope you enjoyed learning about how to enable annotation edit mode after dropping a node from the palette to the diagram canvas.

You can refer to our Vue Diagram feature tour page to learn about its other groundbreaking feature representations and documentation, and how to quickly get started with configuration specifications.
You can also explore our Vue Diagram example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, BoldDesk Support, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied