[TS file]
export class GridComponent {
public gridData: any;
public command: any
constructor() {
this.command = [{ type: ej.Grid.UnboundType.Edit, buttonOptions: { contentType: "imageonly", size: "normal", prefixIcon: "e-icon e-edit" } }];
. . .
}
}
[JS file]
<ej-grid [allowPaging]="true" [allowSorting]="true" [dataSource]="gridData">
<e-columns>
. . .
<e-column headerText="Manage Records" width="130" [commands]="command"></e-column> </e-columns>
</ej-grid> |