Is it possible to change the type of a component in App Designer?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Adam Hughes
am 4 Nov. 2022
Beantwortet: Kevin Holly
am 4 Nov. 2022
I am using an Edit Field component in an app and half way through development I have decided I'd rather have it as a Spinner component. Is there a way to directly replace that Edit Field component with a Spinner (or add the spinner functionality to it) without simply deleting the edit field and creating a new spinner? If I take that approach I have to connect all the back-end up to the new component which I'd rather avoid.
0 Kommentare
Akzeptierte Antwort
Kevin Holly
am 4 Nov. 2022
You could copy&paste the callback function of the edit field to that of the new spinner. You could rename the new spinner within the component browser to be that of the previous editfield. Then if you rename it again, it would refactor your code.
0 Kommentare
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!