I try to do what is explained here: https://ej2.syncfusion.com/angular/documentation/grid/row/detail-template#rendering-custom-component
In the detailBound I would like to add a template for a row and add a button inside of it. But I don't know how to reference to the data like I would if I were to use <ng-template> in html. So I would like to do something like the bold underlined text. But how do I reference to the data?
let detail = new Grid({
dataSource: data.filter((item: Object) => item['EmployeeID'] === e.data['EmployeeID']).slice(0, 3),
columns: [
{ field: 'OrderID', headerText: 'Order ID', width: 110, template: '{{data.orderId}} <button *ngIf="data.orderId >= 5" (click)="onclick($event)">Info</button>' },
{ field: 'CustomerID', headerText: 'Customer Name', width: 140 },
{ field: 'ShipCountry', headerText: 'Ship Country', width: 150 }
]
});