BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
[app.component.html]
<ejs-grid #grid [dataSource]='data' height='350'>
</ejs-grid>
<ng-template #template let-data>
<div class='empimg'><span>{{data.CustomerName}}</span></div>
</ng-template>
---------------------------------------------------------------------------------------------------------------------------
[app.component.ts]
export class AppComponent {
public data: Object[] = [];
@ViewChild('grid')
public gridInstance : GridComponent ;
@ViewChild('template')
public toolbarTemplate: any;
ngOnInit(): void {
this.data = orderDetails;
this.defineColumns();
}
defineColumns() : void {
this.gridInstance.columns = [
{
headerText: 'Employee Image', textAlign: 'Center',
template: this.toolbarTemplate, width: 150
},
{ field: 'ShipCountry', headerText: 'Ship Country', width: 120 },
{ field: 'ShipCity', headerText: 'Ship City', width: 170 }
];
}
}
|