How to create a delete button for each parent in a nodetree in the App Designer?
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ablenya Barros
am 2 Mai 2022
Kommentiert: Ablenya Barros
am 2 Mai 2022
I've created a checkbox tree node, with a parent node:
app.Tree1 = uitree(app.UIFigure, 'checkbox', 'FontSize',14);
parent1 = uitreenode(app.Tree1,'Text',app.FileName);
Upon creation of the parent node, I'd like to add a delete button to it, so I can delete that parent node, independently if the checkbox for that node is selected. Is this possible with the App designer?
0 Kommentare
Akzeptierte Antwort
Kevin Holly
am 2 Mai 2022
You could create a pushbutton that can delete the seleced node.
delete(app.Tree1.SelectedNodes)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!