UiWidgetBundle (Beta)
Parent Type
File Structure and Directory Location
UiWidgetBundle components are stored in the uiWidgets folder.
Here’s an example of the UiWidgetBundle structure.
The bundle includes these resources.
- The uiWidgets folder (1) contains a folder for each created widget in the format {widgetName} (2).
- Each widget folder contains a {widgetName}.json file (3) that defines the JSON UI composition structure for the widget, specifying the component layout, nesting, and data bindings.
- Each widget folder also contains a {widgetName}.uiwidget-meta.xml file (4) that defines the widget type.
- Finally, an optional schema.json file (5) defines the attribute contract—the attributes and their associated Lightning types the widget accepts.
Version
UiWidgetBundle components are available in API version 67.0 and later.
Fields
| Field Name | Description |
|---|---|
| description |
|
| masterLabel |
|
| widgetType |
|
Declarative Metadata Sample Definition
This package.xml file retrieves all the UiWidgetBundle components in an org.
In the retrieved .zip file, each widget is nested under a uiWidgets folder.
This example shows the directory structure in the .zip file of a widget named hotelCard:
Here are the contents of the files in the hotelCard directory. This sample code shows the contents of the schema.json file.
Contents of the hotelCard.json file.
Contents of the hotelCard.uiwidget-meta.xml file.
Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.