ecosystem/applications/application-plugins/plugin-list.component.ts
selector | c8y-plugin-list |
templateUrl | ./plugin-list.component.html |
Properties |
Methods |
Inputs |
Outputs |
emptyListText |
Type : string
|
Default value : ''
|
plugins$ |
Type : BehaviorSubject<ApplicationPlugin[]>
|
selectable |
Type : boolean
|
selectedItems |
Type : EventEmitter<string[]>
|
updateSelectedItems |
updateSelectedItems(value: boolean, name: string)
|
Returns :
void
|
selectedPlugins |
Type : object
|
Default value : {}
|
<c8y-list-group class="bg-inherit">
<ng-container *ngIf="(plugins$ | async)?.length !== 0; else emptyList">
<ng-container *ngFor="let plugin of plugins$ | async">
<c8y-plugin-list-item
(isItemSelected)="updateSelectedItems($event, plugin.id)"
[plugin]="plugin"
[selectable]="selectable"
></c8y-plugin-list-item>
</ng-container>
</ng-container>
</c8y-list-group>
<ng-template #emptyList>
<div class="c8y-empty-state text-left" *ngIf="emptyListText">
<h1 c8yIcon="plugin"></h1>
<p>
{{ emptyListText | translate }}
</p>
</div>
</ng-template>