Adicione a imagem ao AG-Grid com o React
import avatar1 from "../assets/images/avatar1.webp";//Image
export default function List(){
const userImg = (params) => {
return `<div>
<img alt="" class="userListImg" src=${avatar1}/>
</div>`;
}
return (
<div className="ag-theme-alpine">
<AgGridReact
rowData={data}
onGridReady={onGridReady}
rowSelection="multiple"
components={{
userImg: userImg,
}}>
<AgGridColumn
field="Username"
cellRenderer="userListImg"
sortable={true}
filter={true}>
</AgGridColumn>
</AgGridReact>
</div>
);
};
Nitria