You could also achieve this using a CSS class
/* ---- conditional : only some cell are editable based on cell data type/field -----*/
cellClass: function(params) { return (params.data && params.data.sale ? 'editable-grid-cell':''); },
/* ------ if all cells are editable ----------*/
cellClass: 'editable-grid-cell',
Next, include the following CSS
.editable-grid-cell::after {
content: "\F303";
font-family: "Font Awesome 5 Free";
position: absolute;
top: 0;
right: 0;
font-size: 15px;
font-weight: 900;
z-index: -1; /* this places it in the background so that clicking on it triggers the cell-click event */
}
If you're working in Angular, you may need to use ::ng-deep to override component level styles like so:
::ng-deep ..editable-grid-cell::after { .... }