Asset selector component validation

Product/components used and version/fix level:

1018

Detailed explanation of the problem:

I am using a asset selector component for asset selection in my plugin. I have criteria to have multi select only a Devices not Groups and Sites for this have adjusted config object as below.

config = {
  groupsSelectable: false,
  multi: true,
  modelMode: 'full',
  label: `Assets (3 Max)`
};

<c8y-asset-selector formControlName="assetSelect" [(ngModel)]="model"(onSelected)="selectionChanged($event)" [config]="config"></c8y-asset-selector>

at the same time I should allow user to select max 3 devices under only one site or group as below.

Let say I have selected one device from one site and other device from diff site or group is not allowed. I have gone through the documentation here. Did not find any references. Is that doable ?

Question related to a free trial, or to a production (customer) instance?

Production

Regards
Mohan

Hi @Mohan_Pathapataa,

This would be logic you would have to implement on your own.

Regards,
Tristan

Thanks for the information, @Tristan_Bastian. I am specifically looking for a custom implementation. Before proceeding, I am checking whether the out-of-the-box Asset Selector has any such support.

For disabling asset-level checkboxes, is there a property available to set, or do we need to disable them via CSS only? Additionally, when selecting an asset from the list, can we retrieve the respective Site and Group it belongs to from the selected items? with out calling REST end point. I am just seeking clarification on these points.

Regards
Mohan