Posted 25 October 2018, 3:41 am EST
I am trying to create a flex grid that has an array of objects. I want the data to display with a ‘value’ from the object and be formatted with a ‘innerHTML’ from that same item object.
I can get it to render the array and ‘value’ but i cant get the grid to display the ‘innerHTML’…
Grid in html…
<wj-flex-grid-column *ngFor="let col of columns" [header]="col.header" [binding]="col.binding" [visible]="col.visible" [isContentHtml]="true">
<ng-template wjFlexGridCellTemplate [cellType]="'Cell'" let-cell="cell">
<div [innerHTML]="col.innerHTML"></div>
</ng-template>
</wj-flex-grid-column>
and ts model =
export class WijmoGridRowDefinition {
constructor(
public header?: string,
public binding?:string,
public visible?: any,
public width?: any,
public innerHTML?: any
) { }
}
The Component makes a list of these object and populated them from the database. The grid shows the data and the rows, but any item that has innerHTML is blank…