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

10 次查看(过去 30 天)
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?
  4 个评论
Xingguo WU
Xingguo WU 2020-4-6
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".

请先登录,再进行评论。

采纳的回答

Eric Sargent
Eric Sargent 2020-12-9
As of R2020b you can author a custom UI component and add it to an App Designer app programatically (i.e. it is not possible to add it to the Component Library in the App Designer canvas). You can use this class to create reusable components across multiple apps.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop 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