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

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.

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest