Change properties of multiple components programmatically
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Moritz Wahlenmeier
le 23 Mar 2022
Réponse apportée : Fangjun Jiang
le 23 Mar 2022
Hi,
is there a way to programmatically change the properties of a group of components similiar to using css selectors in HTML?
e.g. change the background color of all components with the type "uibutton" and "uilabel"
thanks in advance!
0 commentaires
Réponse acceptée
Fangjun Jiang
le 23 Mar 2022
Yes. Simpliest example
a=uibutton;
b=uibutton;
set([a,b],'BackgroundColor','green')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!