Item panel
The area above Activity
is the page display container of the extension point of the item panel, and each item can be expanded.
Manifest example
modules:
itemPanel:
- key: item-panel-key
route: /item-panel
title: Panel Title
resource: main
loadType: Micro
resources:
- key: main
path: ./dist/
Properties
name | type | required | description |
---|---|---|---|
key | String | Yes | A key for the module, which other modules can refer to. Must be unique within the manifest. Regex: ^[a-zA-Z0-9_-]+$ |
resource | String | Yes | A reference to the static resources entry that your item panel wants to display. See resources for more details. |
title | String | Yes | The title of the item activity, which is displayed as a panel item |
loadType | Micro | Yes | The app's rendering method |
route | String | false | The app route, default / |
displayScript | String | false | The app's displayScript method, example as return context?.itemType === 'version_snapshot' , the only itemType in context, and it will show when return true or otherwise. |