Skip to main content

Version action

This module supports the application to display the operation entry in the version actions and perform related operations.

proxima_version_action

Manifest example

modules:
proxima:versionAction:
- key: version-action
title: 编辑
loadType: Micro
route: /admin
resource: main
- key: version-action-link
title: 跳转链接
loadType: Link
linkHref: '/[tenant]/[workspaceKey]/[version.key]?versionId=[version.objectId]'
linkTarget: _blank
resources:
- key: main
path: ./dist/

Properties

nametyperequireddescription
keyStringYesA key for the module, which other modules can refer to. Must be unique within the manifest.
Regex: ^[a-zA-Z0-9_-]+$
resourceStringYes for MicroA reference to the static resources entry that your item panel wants to display. See resources for more details.
titleStringYesThe title of the version action, which is displayed as the version action
loadTypeMicro | LinkYesThe app's rendering method, Micro would display in the modal
routeStringfalseThe app route, default /
linkHrefStringfalseThe router path of link, and use context variables with [context].
linkTarget_blank|_self|_parent|_top|framenamefalseThe link's Target property specifies where to open the linked document as a in Html5, default: _blank.

context

In your application you can use the following parameters

PropertyTypeDescription
workspaceKeystringThe key of the current workspace
versionversionThe row data of the current version