我们可以为每个设备配置具有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'
});