Skip to content
Advertisement

Ag-grid Image rendering

I’m working on a project where I have to use ag-grid for table. I’m using angular for the project. But the problem is I want to show the user’s profile picture and name in one cell in ag-grid like the image I was attached. But I couldn’t render the image. How can I do this? I tried lots of things, but failed. Please help me to find the solution.

enter image description here

JavaScript

Advertisement

Answer

Pass params and check params.data.avtar;

JavaScript

Or, consider creating separate component for cellRenderer

https://www.ag-grid.com/angular-data-grid/component-cell-renderer/

https://plnkr.co/edit/?p=preview&preview

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement