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 badges1 Answer
Reset to default 0Here 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.