I'm currently working with ag-grid and I have a specific need - to include a spinner in each cell of my "index" column:
index_col_def = {
headerName: "ID",
field: "index",
cellRenderer: params => {
return `<div><spinner [show]=spinners.row_${params.data.index}>${params.data.index}</div>`;
},
}
However, upon rendering the ag-grid, the result displays a "spinner" tag with the [show] attribute still intact, indicating that it hasn't been properly converted into the spinner component. Is there a way to generate this spinner component directly within the CellRenderer?
(The ag-grid is constructed dynamically, so options like setting the "innerHTML" of a div in the .component.html file won't work for me as suggested by many solutions online).