MATLAB Answers

Is it possible to build custom UI components in app designer that can be visually re-used in app designer?

40 views (last 30 days)
Xander Twombly
Xander Twombly on 24 Jun 2019
Commented: Xingguo WU on 6 Apr 2020
I would like to build a series of custom compound ui components from the common components in app designer, and then make the custom ui components available as drag and drop components in app designer. Perhaps something as simple as creating a container, populating the container with common components, and then saving the container as a ui*** component that can be visually selected from a component library in app designer.
Fundamentally, does this level of flexibility to create and manage custom ui components exist yet in app designer?


Show 1 older comment
Xander Twombly
Xander Twombly on 27 Jun 2019
Thanks Dennis - confirms what I thought. I'll take the programmatic approach, but hoping to find a way to create WYSIWYG custom component libraries in AppDesigner. That would be a very useful bit of functionality, though perhaps for too small an audience
Dennis on 28 Jun 2019
You can aswell create your components in one app, group your elements and copy & paste them to different apps.
Xingguo WU
Xingguo WU on 6 Apr 2020
Hi, did you find a way to do so?
I wanted to inherit a panel class, and in this subclass I can already put other controls, finally to reuse this panel in main figure across different programs.
But seems I cannot inherit `matlab.ui.container.Panel`, error prompt saying something like "class not in the allowance list".

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!