且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Ag-Grid不支持特殊符号

更新时间:2023-12-01 13:42:16

您可能只需要设置 suppressFieldDotNotation 网格选项 true

You probably just need to set the suppressFieldDotNotation grid option to true:


suppressFieldDotNotation



如果为true,则字段名称中的点(例如 address.firstline )不被视为深度引用。允许您根据需要在字段名称
中使用点。

suppressFieldDotNotation

If true, then dots (eg address.firstline) in field names are not treated as deep references. Allows you to use dots in your field name if you prefer.

(您没有显示任何代码,我'我不在寻找 .zip 。)

(You didn't show any code and I'm not looking in a .zip.)

或者,您的 headerName ,它们只是不能出现在您的字段名称中。

Alternatively, you can have dots in your headerName, they just can't be in your field name.