repository/shared/columns/file.cell-renderer.component.ts
providers |
RepositoryService
|
selector | c8y-file-cell-renderer |
standalone | true |
imports |
CommonModule
|
templateUrl | ./file.cell-renderer.component.html |
Properties |
|
Methods |
constructor(context: CellRendererContext, inventoryBinaryService: InventoryBinaryService, repositoryService: RepositoryService)
|
||||||||||||
Parameters :
|
getBinaryName | ||||||
getBinaryName(configuration: IManagedObject)
|
||||||
Decorators :
@memoize(undefined)
|
||||||
Parameters :
Returns :
any
|
isBinaryFile |
isBinaryFile()
|
Returns :
boolean
|
Public context |
Type : CellRendererContext
|
<small
title="{{ getBinaryName(context.item) | async }}"
*ngIf="isBinaryFile(); else noFile"
>
{{ getBinaryName(context.item) | async }}
</small>
<ng-template #noFile>
<small title="{{ context.item?.url }}">
{{ context.item?.url }}
</small>
</ng-template>