Qooxdoo table add/remove 动态列
Qooxdoo table add/remove columns dynamically
有没有一种方法无需每次都根据需要在 table 小部件的 add/remove 列中重新创建 table?
根据我的研究,我找不到使用 table 小部件实现此目的的方法。
不,抱歉,这无法完成,如 qx.ui.table.model.Abstract
中 setColumns
方法的文档中的以下说明所述:
Note: You can not change the number of columns this way. The number
of columns is highly intertwined in the entire table operation,
and dynamically changing it would require as much work as just
recreating your table. If you must change the number of columns
in a table then you should remove the table and add a new one.
但是,您可以使用列可见性功能显示和隐藏列,即列模型的 setColumnVisibile
方法。
德雷尔
有没有一种方法无需每次都根据需要在 table 小部件的 add/remove 列中重新创建 table?
根据我的研究,我找不到使用 table 小部件实现此目的的方法。
不,抱歉,这无法完成,如 qx.ui.table.model.Abstract
中 setColumns
方法的文档中的以下说明所述:
Note: You can not change the number of columns this way. The number
of columns is highly intertwined in the entire table operation,
and dynamically changing it would require as much work as just
recreating your table. If you must change the number of columns
in a table then you should remove the table and add a new one.
但是,您可以使用列可见性功能显示和隐藏列,即列模型的 setColumnVisibile
方法。
德雷尔