Skip to main content

Dashboard gadget

The chart module define a dashboard gadget that adds a panel to the workbench that displays custom statistics。

dashboard-add dashboard-panel

Manifest Example

chart:
- key: basic-pie-chart
resource: basic-pie-chart
name: 类型占比
description: 类型占比
loadType: RemoteJs
tabOrder: 1
grid:
w: 4
h: 3
minW: 1
maxW: 12
minH: 1
icon: data:image/png;base64,iVBOR

Properties

NameTypeRequiredDescription
keyStringYesA key for the module, which other modules can refer to. Must be unique within the manifest.
resourceStringYesA reference to the static resources entry that gadget wants to display.
nameStringYesThe name of the gadget, which is displayed at the top of the gadget.
descriptionStringNoThe description of the gadget, which is displayed at the gadget list of the add gadget panel
loadTypeMicro | Iframe | RemoteJsYesThe load resource type
tabOrderStringNoGadget class numbers. The class numbers of gadget in the same plugin should be the same.
gridStringYesGadget size. unit: grid. w: default width, h: default height, minW: min width, maxW: max width, minH: min height, maxH: max height
iconStringYesThe Base64 image of the icon that's display left to the name.