ag grid - AgGrid Excel Exports processCellCallback vs valueGetter - Stack Overflow

In our application we make use of Luxon DateTime rather than JS Date.This means that all of our date c

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742351985a4427703.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信