File

ecosystem/applications/application-plugins/plugin-list.component.ts

Metadata

Index

Properties
Methods
Inputs
Outputs

Inputs

emptyListText
Type : string
Default value : ''
plugins$
Type : BehaviorSubject<ApplicationPlugin[]>
selectable
Type : boolean

Outputs

selectedItems
Type : EventEmitter<string[]>

Methods

updateSelectedItems
updateSelectedItems(value: boolean, name: string)
Parameters :
Name Type Optional
value boolean No
name string No
Returns : void

Properties

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>

results matching ""

    No results matching ""