data-grid-columns/asset-type/asset-type.cell-renderer.component.ts
OnInit
selector | c8y-asset-type-cell-renderer |
standalone | true |
imports |
CommonModule
I18nModule
DeviceStatusModule
|
templateUrl | ./asset-type.cell-renderer.component.html |
Properties |
Methods |
|
constructor(context: CellRendererContext, assetNodeService: AssetNodeService)
|
|||||||||
Parameters :
|
Async ngOnInit |
ngOnInit()
|
Returns :
any
|
Public context |
Type : CellRendererContext
|
groupIcon |
Type : Promise<string>
|
iconTitle |
Type : string
|
isAnyGroup |
Type : boolean
|
isAsset |
Type : boolean
|
isDevice |
Type : boolean
|
<device-status
class="m-l-8"
[mo]="context.item"
*ngIf="isDevice"
></device-status>
<i
class="m-l-8 c8y-icon-duocolor"
[c8yIcon]="groupIcon | async"
title="{{ iconTitle | translate }}"
*ngIf="isAnyGroup || !isDevice"
></i>