Qooxdoo 和 Javascript - 表格(模型) - 隐藏表格单元格?

发布于 2024-11-28 02:55:19 字数 405 浏览 2 评论 0原文

找不到隐藏我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

安人多梦 2024-12-05 02:55:19

您应该为此使用特殊的表模型。 qooxdoo 提供了一个过滤表模型 [1],它正是用于此目的。 demobrowser [2] 中还有一个演示,您可以看看它是如何使用的。

  1. http://demo.qooxdoo.org/current/apiviewer/ #qx.ui.table.model.Filtered
  2. http://demo.qooxdoo.org/current/demobrowser/#table~Table_Filtered_Model.html

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.

  1. http://demo.qooxdoo.org/current/apiviewer/#qx.ui.table.model.Filtered
  2. http://demo.qooxdoo.org/current/demobrowser/#table~Table_Filtered_Model.html
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文