File

device-profile/select-configuration-modal.component.ts

Metadata

Index

Properties
Methods

Constructor

constructor(repositoryService: RepositoryService)
Parameters :
Name Type Optional
repositoryService RepositoryService No

Methods

aggregate
aggregate(mos: IManagedObject[])
Parameters :
Name Type Optional
mos IManagedObject[] No
getItems
getItems()
Returns : any
result
result(selectedItems)
Parameters :
Name Optional
selectedItems No
Returns : void
search
search(searchTerm)
Parameters :
Name Optional
searchTerm No
Returns : void

Properties

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>

results matching ""

    No results matching ""