最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论