device-profile/select-configuration-modal.component.ts
selector | c8y-select-configuration-modal |
templateUrl | ./select-configuration-modal.component.html |
Properties |
Methods |
constructor(repositoryService: RepositoryService)
|
||||||
Parameters :
|
aggregate | ||||||
aggregate(mos: IManagedObject[])
|
||||||
Parameters :
Returns :
ISelectModalObject[]
|
getItems |
getItems()
|
Returns :
any
|
result | ||||
result(selectedItems)
|
||||
Parameters :
Returns :
void
|
search | ||||
search(searchTerm)
|
||||
Parameters :
Returns :
void
|
configurations |
Type : Observable<any[]>
|
Default value : this.load.pipe(
switchMap(() => this.getItems()),
map(({ data }) => this.aggregate(data))
)
|
deviceTypeQuery |
Type : any
|
Default value : {}
|
labels |
Type : ModalLabels
|
Default value : { ok: gettext('Save') }
|
load |
Type : Subject<void>
|
Default value : new Subject()
|
resultEmitter |
Type : EventEmitter<any[]>
|
Default value : new EventEmitter<any>()
|
searchQuery |
Type : any
|
Default value : {}
|
selected |
Type : any[]
|
title |
Type : string
|
Default value : gettext('Select configuration')
|
<c8y-select-modal
[icon]="'gears'"
[title]="title"
[items]="configurations | async"
[mode]="'multi'"
(result)="result($event)"
(search)="search($event)"
[disableSelected]="true"
[labels]="labels"
>
</c8y-select-modal>