Is it possible to change the type of a component in App Designer?

6 ビュー (過去 30 日間)
Adam Hughes
Adam Hughes 2022 年 11 月 4 日
回答済み: Kevin Holly 2022 年 11 月 4 日
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.

採用された回答

Kevin Holly
Kevin Holly 2022 年 11 月 4 日
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 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by