Ag-Grid不支持特殊符号 [英] Ag-Grid Not Supporting Special Symbol

查看:177
本文介绍了Ag-Grid不支持特殊符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用Ag-Grid,并面临为特殊符号绘制数据的挑战,它实际上不支持特殊符号,也没有绘制它!!

I tried using Ag-Grid, and faced a challenge to plot the data for Special Symbol, It actually doesn't support the special symbol and doesn't plot it!!

请参考Example1.png,这里的No.列不包含数据
,但是当我从headerName,
和rowData的script.js文件中删除点运算符时,它开始对其进行绘图。 (请参见Example2.png)

Refer To Example1.png, here the No. Column Doesn't contain data, but when I remove the dot operator from my script.js file from headerName, and rowData, it starts plotting it. (Refer To Example2.png)

也附加了一个zip文件(Google云端硬盘链接)作为此问题的原型,供您参考!
https://drive.google.com/open?id=1UqyrRtAhg8- HBwqVqUT_CGMhwyr_cOUt

Also attached a zip file (Google Drive Link) as a prototype of this problem for your reference! https://drive.google.com/open?id=1UqyrRtAhg8-HBwqVqUT_CGMhwyr_cOUt

Kushagra

推荐答案

您可能只需要设置 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.)

或者,您的<$ c $中可以有点c> headerName ,它们只是不能出现在您的字段名称中。

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

这篇关于Ag-Grid不支持特殊符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆