File

sub-assets/groups.component.ts

Implements

OnInit

Metadata

Index

Properties
Methods

Constructor

constructor(permissions: Permissions, subAssetsService: SubAssetsService)
Parameters :
Name Type Optional
permissions Permissions No
subAssetsService SubAssetsService No

Methods

ngOnInit
ngOnInit()
Returns : void

Properties

filterable
Type : boolean
Default value : false
refresh
Type : EventEmitter<any>
Default value : new EventEmitter()
shouldDisableAddGroup
Type : boolean
Default value : false
showAddGroup
Default value : false
sortable
Type : boolean
Default value : true
<c8y-title>
  {{ 'Groups' | translate }}
</c8y-title>
<c8y-action-bar-item [placement]="'right'">
  <button
    class="btn btn-link"
    title="{{ 'Add group' | translate }}"
    (click)="showAddGroup = !showAddGroup"
    [disabled]="shouldDisableAddGroup"
  >
    <i c8yIcon="plus-circle" class="m-r-4"></i>
    {{ 'Add group' | translate }}
  </button>
</c8y-action-bar-item>

<c8y-help src="/users-guide/device-management/#grouping-devices"></c8y-help>

<div [ngClass]="{ drawerOpen: showAddGroup }">
  <div class="bottom-drawer">
    <c8y-add-group
      [refresh]="refresh"
      (onCancel)="showAddGroup = false"
      *ngIf="showAddGroup"
    ></c8y-add-group>
  </div>
</div>
<c8y-sub-assets-grid
  [refresh]="refresh"
  [filterable]="filterable"
  [sortable]="sortable"
  class="content-fullpage d-flex d-col shadow1"
></c8y-sub-assets-grid>

results matching ""

    No results matching ""