【发布时间】:2018-10-27 12:48:08
【问题描述】:
我们可以为每个设备配置带有c8y-property-selector 属性的小部件,而不仅仅是一个设备吗?我想为多个设备进行配置。有可能吗?
c8yComponentsProvider.add({ // adds a menu item to the widget menu list with ...
name: 'iconmap', // ... the identifier *"iconmap"* which has to be unique among the widgets in the application
nameDisplay: gettext('Icon Map'), // ... the displayed name *"Icon Map"*
description: gettext('Displays a map with icons for devices instead of markers'), // ... a description
templateUrl: ':::PLUGIN_PATH:::/views/iconmap.main.html', // ... displaying *"iconmap.main.html"* when added to the dashboard
options: {
noDeviceTarget: false,
groupsSelectable: true
},
configTemplateUrl: ':::PLUGIN_PATH:::/views/config.html'
});
【问题讨论】:
标签: cumulocity