ag-grid ICellRendererAngularComp vs. AgRendererComponent: Which one should I use?

I'm using ag-grid-angular and need to make custom cell renderer.

In examples of ag-grid angular document, cell renderers implement ICellRendererAngularComp. But I also found some other examples implementing AgRendererComponent. So I have tried both of them and they are working clearly.

My question is, which interface should I implement to create custom cell renderer?

I cannot find any other codes that only exports these interfaces in ag-grid project like this:

export interface ICellRendererAngularComp extends ICellRenderer, AgFrameworkComponent<ICellRendererParams> {
}
...
export interface AgRendererComponent extends ICellRendererAngularComp {
}

It seems AgRendererComponent is more high-level interface, but examples in ag-grid document are using ICellRendererAngularComp... Can anyone at least tell me differences between them?

1 Answer

Not sure of the difference between both, but I have used ICellRendererAngularComp for developing custom renderers, which is also the recommended option per Ag Grid documentation:

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like