How to collapse/expand items in MATLAB app designer in the same panel?

22 ビュー (過去 30 日間)
Vijay KG
Vijay KG 2020 年 8 月 26 日
回答済み: Pratheek Punchathody 2020 年 9 月 2 日
Since I have more entries, I would like to put it in collapse mode in two categories. The example is shown below.
Could someone tell how to get similar feature of collapse/expand in MATLAB App designer?
We have referred this link https://in.mathworks.com/help/matlab/ref/uitree.html but the tree is opening a new window and not on the same panel.
Any help on this is highly appreciated.
Thanks,
Vijay

回答 (1 件)

Pratheek Punchathody
Pratheek Punchathody 2020 年 9 月 2 日
Hi Vijay,
As per my understanding you want to create a collapse and expand list inside the panel.
Find the components such as Panel” and “Tree” in the “Component Library” of AppDesigner using which the expand/collapse list is created inside the panel.
In the above figure I have created two Tree inside the “Panel”.
The below figure shows the “Component Browser” structure for the above output in the AppDesigner
Please refer to the documentation link here for more information on "expand()" and "collapse()" function.
Also refer to the "AppDesigner" documentation for more information.

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by