标题说,当我设置属性时,showRowNumbers = false
我得到了数千个这样的错误;当我将其注释掉时,没有错误,但会显示带有行号和复选框的列(我试图将其关闭)。
例如在 HTML 中:
<script src="https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js"></script>
<div id="fin-grid"></div>
然后在javascript中:
var hg = new fin.Hypergrid('#fin-grid',
{
data: [ { foo : 0.0 , bar : 0.0 , bat : 0.0 } ],
});
// Uncommenting this causes thousands of errors
//hg.properties.showRowNumbers = false;
这是完整的错误/堆栈跟踪:
TypeError: Cannot read property 'visibleColumn' of undefined
at Constructor.<anonymous> (https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js:21121:23)
at Array.forEach (native)
at Array.value (https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js:21510:48)
at Constructor.paintCellsByColumnsAndRows (https://openfin.github.io/fin-hypergrid/build/fin-hypergrid. js:21118:25)
at Constructor.renderGrid (https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js:22206:38)
at Constructor.paint (https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js:21927:18)
at Canvas.paintNow (https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js:16190:28)
at Canvas.tickPaint (https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js:16076:18)
at Canvas.tickPainter (https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js:16094:18)
at https://openfin.github.io/fin-hypergrid/build/fin-hypergrid.js:16552:27
任何指针表示赞赏,谢谢。