File

core/data-grid/column/cell-renderer.component.ts

Implements

OnChanges DoCheck

Metadata

Index

Properties
Methods
Inputs
Accessors

Constructor

constructor(injector: Injector, cd: ChangeDetectorRef)
Parameters :
Name Type Optional
injector Injector No
cd ChangeDetectorRef No

Inputs

spec
Type : CellRendererSpec

Methods

ngDoCheck
ngDoCheck()
Returns : void
ngOnChanges
ngOnChanges()
Returns : void

Properties

prevSpec
Type : CellRendererSpec
rendererInjector
Type : Injector
rendererType
Type : "TEMPLATE" | "COMPONENT"
spec
Type : CellRendererSpec

Accessors

_spec
set_spec(spec: CellRendererSpec)
Parameters :
Name Type Optional
spec CellRendererSpec No
Returns : void
<ng-container *ngIf="spec.renderer">
  <ng-container
    *ngIf="rendererType === 'TEMPLATE'"
    [ngTemplateOutlet]="spec.renderer"
    [ngTemplateOutletContext]="{ $implicit: spec.context }"
  ></ng-container>

  <ng-container
    *ngIf="rendererType === 'COMPONENT'"
    [c8yComponentOutlet]="spec.renderer"
    [c8yComponentOutletInjector]="rendererInjector"
  ></ng-container>
</ng-container>

<ng-container *ngIf="!spec.renderer">
  <span title="{{ spec.context.value | stringifyObject }}">
    {{ spec.context.value | stringifyObject }}
  </span>
</ng-container>

results matching ""

    No results matching ""