Qooxdoo 和 Javascript - 表格(模型) - 隐藏表格单元格?
找不到隐藏我的 Qooxdoo 表中的表单元格的方法。有人知道可能性吗?
this.getTableObj().getTableModel()...
..然后我认为它必须像..
... .getTableCell(TableRow, TableColumn).cellrenderer.Replace(null);
或者可能就像 .getTableCell(TableRow, TableColumn).hideCell();会很完美。
编辑:我需要此功能来在单元格中显示可按下的按钮(只是一张图片)。我可以隐藏渲染器(图片本身),但不能隐藏单元格上的 onclick 事件。为此,我需要某种 ..cell.isVisible(false);
提前致谢,
最诚挚的问候, 斯蒂芬
can't find a way to Hide a Table Cell in my Qooxdoo Table. Does anyone know a possibility?
this.getTableObj().getTableModel()...
..and then I think it has to be like..
... .getTableCell(TableRow, TableColumn).cellrenderer.Replace(null);
or maybe just like .getTableCell(TableRow, TableColumn).hideCell(); would be perfect.
EDIT: I need this functionality for showing a pressable button in a cell (just a picture). I can hide the renderer (the picture itself) but not the onclick event on the cell. this for, i would need some kind of ..cell.isVisible(false);
Thanx in advance,
best regards,
Stephan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该为此使用特殊的表模型。 qooxdoo 提供了一个过滤表模型 [1],它正是用于此目的。 demobrowser [2] 中还有一个演示,您可以看看它是如何使用的。
You should use a special table model for that. qooxdoo offers a filtered table model [1] which is exactly for that purpose. There is also a demo in the demobrowser [2] where you can take a look how it is used.