device-list/device-list.component.ts
selector | c8y-device-list |
templateUrl | ./device-list.component.html |
Properties |
Methods |
|
constructor(deviceGridService: DeviceGridService, bsModalService: BsModalService)
|
|||||||||
Parameters :
|
Async createSmartGroup |
createSmartGroup()
|
Returns :
any
|
count$ |
Default value : this.deviceGridService.getTotal({})
|
deviceQueryStringOutput |
Type : string
|
filters |
Type : FilterConfig[]
|
Default value : []
|
Readonly GRID_CONFIG_KEY |
Type : string
|
Default value : 'device-grid-all'
|
<c8y-title>
{{ 'All devices' | translate }}
</c8y-title>
<c8y-action-bar-item [placement]="'right'">
<button
class="btn btn-link"
title="{{ 'Create smart group' | translate }}"
(click)="createSmartGroup()"
>
<i c8yIcon="c8y-group-smart"></i>
{{ 'Create smart group' | translate }}
</button>
</c8y-action-bar-item>
<c8y-help src="/users-guide/device-management/#viewing-devices"></c8y-help>
<div class="content-fullpage">
<c8y-device-grid
[infiniteScroll]="(count$ | async) === undefined ? 'auto' : undefined"
[columnsConfigKey]="GRID_CONFIG_KEY"
(onDeviceQueryStringChange)="deviceQueryStringOutput = $event"
(onFilterChange)="filters = $event"
></c8y-device-grid>
</div>