I am trying to use angular material component inside plain js renderer, as stated in ag-grid document, using framework renderer is slow.
However, if I just put the material component code in plain js, it will not render the material component properly
class plainJsRadioRenderer {
eGui: any;
// gets called once before the renderer is used
init(params) {
// create the cell
this.eGui = document.createElement('div');
this.eGui.innerHTML = `<mat-radio-button>Option 1</mat-radio-button>`;
}
getGui() {
return this.eGui;
}
// gets called whenever the cell refreshes
refresh(params) {
return false;
}
}
Above is my attempt, but it will just directly paste the mat-radio-button inside the grid cell without processing it.
So how to use material component with plain js renderer? Thanks