I am having hard time to implement icon in jqxgrid. Here is my code https://jseditor.io/?key=gqgrid-angular
I am trying to show "Edit" and "Delete" icon instead of text / button. If i use following code, icon is displaying but its in box and no action is performing after clicking on it. If i use "return del" its performing action.
{
text: '', datafield: 'Delete',
width: 33, columnType: 'button',
cellsRenderer: (row: number, column: any, value: any, defaulthtml: string, columnproperties: any, rowdata: any) => {
return '<i class="fa fa-trash deleteButton"></i>';
// return 'del';
},
buttonClick: (row: number): void => {
console.log("*********");
this.deleteRow(row);
}
}
Please can you suggest what i am doing wrong? How i show icon and it perform action upon click.