admin管理员组

文章数量:1335435

In our application we make use of Luxon DateTime rather than JS Date. This means that all of our date columns need to be formatted using:

param.data.fieldName?.toISO({ includeOffset: false }) || ''

My question is, should I be doing this in processCellCallback or valueGetter?

I don't see any documentation about processCellCallback on the AG-Grid doc/api pages, so I am not sure if one has an advantage over the other.

In our application we make use of Luxon DateTime rather than JS Date. This means that all of our date columns need to be formatted using:

param.data.fieldName?.toISO({ includeOffset: false }) || ''

My question is, should I be doing this in processCellCallback or valueGetter?

I don't see any documentation about processCellCallback on the AG-Grid doc/api pages, so I am not sure if one has an advantage over the other.

Share Improve this question asked Nov 20, 2024 at 15:02 awdorrinawdorrin 4536 silver badges13 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Here is the documentation for processCellCallback. valueGetter is used to get the value to display in the grid whereas processCellCallback is used to get the value to display in the export.

本文标签: ag gridAgGrid Excel Exports processCellCallback vs valueGetterStack Overflow