Main Content

Create Custom UI Components

Create your own reusable custom UI components for use in apps

创建您自己的自定义UI组件使用r apps or to share with others. You can use custom components to extend existing UI component functionality, to break up large apps into independent and maintainable pieces, and to design an interface for users to customize and reuse a component across multiple apps. Create custom components interactively in App Designer or programmatically by creating a subclass of theComponentContainerbase class. In both cases, you can configure your components to be used interactively in App Designer apps.

Classes

matlab.ui.componentcontainer.ComponentContainer Base class for developing custom UI component objects

Methods

setup Set up instance of component container subclass
update Update instance of UI component container subclass after setting properties

Functions

appdesigner.customcomponent.configureMetadata Configure custom UI component for use in App Designer
appdesigner.customcomponent.removeMetadata Remove custom UI component from App Designer

Topics

Create Components in App Designer

Create Components Programmatically

Use and Share Components