Is there a way to enable only DeviceGroup Selection and disable device selection in Widget Config?

Product/components used and version/fix level:

Cumulocity IoT 10.18

Detailed explanation of the problem:

I want to have only device group selection enabled in the widget config and device selection disabled. User should only be able to select and device groups and not single devices. I know it’s possible to enable group selection using groupsSelectable option but it doesn’t disable device selection. Is there a way to do this using widget setting options.

Hi Balpreet,

the only way to do this, would be to disable the whole default asset selector by setting:

        options: {
          noDeviceTarget: true,
          groupsSelectable: false
        }

You can then use the MillerViewComponent which you could configure to only display groups.

Regards,
Tristan

Thanks Tristan, Do you have an example code that integrates MillerViewComponent. It will be really helpful

The tutorial app contains samples on how to use the MillerViewComponent.

Thanks Tristan