Why "addStyle" doesn't work for uiTree?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mark Golberg
le 24 Déc 2021
Commenté : Mark Golberg
le 27 Déc 2021
Hello,
I have MATLAB 2020b. Try to test the code in the "addStyle" help page (the one for uiTree):
I get the following error:
why is that? does it require a particular Toolbox or something like that?
Thank You!
0 commentaires
Réponse acceptée
Shanmukha Voggu
le 27 Déc 2021
Modifié(e) : Shanmukha Voggu
le 27 Déc 2021
Hi Mark,
The addStyle works for only table UI component before R2021b (So it is giving error while using tree UI component in R2020b)
In R2021b, The addStyle Function can also add styles to nodes and levels in a tree UI component
Finally, In order to resolve the error upgrade the MATLAB version to R2021b
R2020b Documentation: https://www.mathworks.com/help/releases/R2020b/matlab/ref/matlab.ui.control.tableappd.addstyle.html?s_tid=doc_ta
R2021b Documentation:
Release Notes:
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!