repository/shared/columns/type.cell-renderer.component.ts
selector | c8y-type-cell-renderer |
standalone | true |
imports |
CommonModule
|
templateUrl | ./type.cell-renderer.component.html |
Properties |
|
constructor(context: CellRendererContext)
|
||||||
Parameters :
|
Public context |
Type : CellRendererContext
|
<span
class="label label-info"
*ngIf="!!context?.item?.[context?.property?.path]; else emptyText"
>
{{ context.item[context.property.path] }}
</span>
<ng-template #emptyText>
<small class="text-muted">
<em translate>Undefined`type`</em>
</small>
</ng-template>