DEV Community

Discussion on: Testing Ag-Grid React’s Custom Cell Renderer Component

Collapse
 
eviltester profile image
Alan Richardson

Thanks for sharing Rex, always good to see more examples.

I wrote a post for the AG Grid blog with some React Testing Library tests on an AG Grid implementation blog.ag-grid.com/using-react-testi... if that helps.

Collapse
 
rexebin profile image
Rex

You are Ag-Grid! It is such pleasure meeting you. Ag-Grid is my favourite grid library and I use it in all my apps. Thank you very much for providing such a good library.

By any chance is this new generic cell renderer already implemented in Ag-Grid?

Collapse
 
eviltester profile image
Alan Richardson

Thanks Rex, I'll forward your compliment on to the dev team :)

I don't think we have a generic cell renderer like that where the control to render is passed in through params.

Collapse
 
scooperdev profile image
Stephen Cooper

Yes! You can pass components directly to cellRenderer now. See ag-grid.com/react-data-grid/compon...

Collapse
 
rexebin profile image
Rex

Thank you Alan. I have updated this blog post for a better implementation. It is the test got me thinking more clearly.

I will definitely have a look at your blogs, thank you for sharing