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

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'"
    [ngComponentOutlet]="spec.renderer"
    [ngComponentOutletInjector]="rendererInjector"
  >
  </ng-container>
</ng-container>

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

results matching ""

    No results matching ""