<e-column headerText="Employe Image" width='150' textAlign='Center'>
<ng-template #template let-data> // its returns type as string only
<img src={{data.image}} />
<img src={{data.image}} />
</ng-template>
</e-column> |
<e-column field='ShipName' headerText='Ship Country' width='120' [disableHtmlEncode]="false"></e-column>
// you can use any html type value
let data: any[] = [
{
OrderID: 10248, Country: { CustomerID: 'VINET'}, EmployeeID: 1, OrderDate: new Date(8364186e5),
ShipName: "<img src ='https://ej2.syncfusion.com/demos/src/grid/images/1.png'/> ", ShipCity: 'Reims', ShipAddress: '59 rue de l Abbaye',
ShipRegion: 'CJ', ShipPostalCode: '51100', ShipCountry: 'France', Freight: 32.38, Verified: !0
}. . . . .
]
|