Item action
In the header of the detail page, after the item owner, you can extend the operation buttons. Clicking the button will display the application you wrote.
There will also be extended operation buttons in the item list:
Manifest example
modules:
itemAction:
- key: item-action-key
route: /item-action
title: Action 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 action wants to display. See resources for more details. |
title | String | Yes | The title of the item action, which is displayed as a button |
loadType | Micro | Yes | The app's rendering method |
route | String | false | The app route, default / |
Close the current modal
You can close the modal rendered by the current application through closeModal.