Add and delete Tree nodes with context menu in app designer
33 views (last 30 days)
Jae-Hee Park on 15 Jun 2022
I am making an app using app designer.
There is a uitree, and I was able to create a child node of that uitree through the add button like below.
app.TreeNode = uitreenode(app.Scenario1Node);
But after creating multiple nodes, I can't figure out how to remove the selected node.
What should I do?
My goal is that when creating a node, the contextmenu of the node is also created, and the contextmenu has a function to delete the selected node.
please help me! Thank you.
Alberto Cuadra Lara on 15 Jun 2022
You can delete the node directly as follows
% Remove node of UITree
% If you want to remove only its children use