How to implement or use an accordion panel in MATLAB App Designer?

23 views (last 30 days)
Hey, I like to create an accordion panel in MATLAB App Designer . Specifically, I want a component similar to a tree structure but with collapsible panels instead of nodes. Each panel should expand or collapse when clicked, and it should contain various UI components (buttons, sliders, etc.). Does MATLAB have a built-in feature for accordion panels? If not, are there any recommended third-party components or custom implementations I could use? Sample code or guidance would be appreciated.(for the example the like the picture I uploaded)

Answers (1)

Sreeram
Sreeram on 16 Dec 2024
Hi Lidor,
It looks like the picture is not attached. I assume that you are trying to create a collapsible panel in MATLAB App Designer.
MATLAB does not have a built-in feature for collapsible panels. However, this File Exchange submission by a MathWorks staff member supports collapsible panels called “boxPanels:
The documentation for “boxPanels can be accessed at this path:
layoutdoc/User_guide4_2.html
It is also possible to implement the functionality using the “uipanel and programmatically controlling its size and clipping. For more details, this MATLAB Answers post might be helpful:
I hope it helps!

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!