0
votes

Documentation gives only example with Simple Cell Renderer. (https://www.ag-grid.com/javascript-grid-tree-data/) But what if I need more complex cell rendering for tree data group, can I use an angular component then, instead of a simple function?

2

2 Answers

-1
votes

Yes. You need first to register the components. See in their documentation. It's pretty easy actually. The inside columnDef you just do cellRenderer: 'yourComponent',

https://www.ag-grid.com/javascript-grid-components/#registering-framework-components

-2
votes

In case anyone still needs the answer:

Instead of using cellRenderer property to provide the renderer component in a regular column, you need to provide innerRenderer property inside cellRendererParams of autoGroupCloumnDef.

Like this: example from ag-grid documentation