Configure custom UI component for use in App Designer
opens a dialog to configure App Designer metadata for the UI component class specified by
classfile. This metadata enables the component to appear in the App
Designer Component Library and be used interactively in the canvas.
The function generates a folder named
resources that contains the
metadata. Share this folder when you share your UI component.
Use the App Designer Custom UI Component Metadata dialog to configure an existing UI component class for use in App Designer.
Assume you created a subclass of the
matlab.ui.componentcontainer.ComponentContainer base class and saved the
class file as
IPAddressComponent.m in the folder
C:\MyComponents. Launch a dialog to configure the
IPAddressComponent for use in App Designer.
Fill out the form, then select OK. The function generates a
resources with the specified metadata in the
C:\MyComponents folder. Add
the MATLAB® path and open an app in App Designer to see your component in the
classfile— Path to UI component class file
Path to the UI component class file, specified as a character vector or string
classfile can be an absolute or relative path.
This table gives a summary of each of the options in the App Designer Custom UI Component Metadata dialog.
|Name||The name of the component as it appears in the App Designer Component Library.|
|Category||The category of the Component Library that the component appears in. Choose an existing category from the drop-down or create a new category by entering a name for it.|
|Icon||The icon that appears above the component name in the Component
Library. Choose a |
|Description||The description that the user sees when hovering over the component in the Component Library.|
|Version||The component version, specified as |
|Author's Name||The name of the component author that the user sees when hovering over the component in the Component Library.|
|Author's Email||The email address of the component author that the user sees when hovering over the component in the Component Library.|