File

repository/shared/columns/file.cell-renderer.component.ts

Metadata

Index

Properties
Methods

Constructor

constructor(context: CellRendererContext, inventoryBinaryService: InventoryBinaryService, repositoryService: RepositoryService)
Parameters :
Name Type Optional
context CellRendererContext No
inventoryBinaryService InventoryBinaryService No
repositoryService RepositoryService No

Methods

getBinaryName
getBinaryName(configuration: IManagedObject)
Decorators :
@memoize(undefined)
Parameters :
Name Type Optional
configuration IManagedObject No
Returns : any
isBinaryFile
isBinaryFile()
Returns : boolean

Properties

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>

results matching ""

    No results matching ""