不要在Agcolumnstoolpanel中显示一些列
如何防止agcolumnstoolpanel
显示特定的列?
例如,我想不显示foo
和bar
的条目,但仅针对x
,这意味着不可能更改foo
,bar
通过agcolumnstoolpanel
列。
我正在使用Vue.js的Ag网格。
How could I prevent the agColumnsToolPanel
from showing specific columns?
E.g. I would like to not show entries for the foo
and bar
, but only for the x
, meaning that it would be impossible to change the foo
, bar
columns visibility through the agColumnsToolPanel
.
I am using the Ag Grid with Vue.js.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此您必须更新工具面板中的列。
相关代码如下。获取对列工具面板的引用,然后将列设置为FOO和bar的列定义。
This example shows you have to update the columns in the tool panel.
Relevant code is as follows. Get a reference to the column tool panel and then set the columns to be just your column definitions for foo and bar.
我假设您只想显示
X
而不是foo
和bar
。您可以在ColumnToolPanel.setColumnlayout
中指定列列表,并且只有这些列会显示在侧面面板中。这是一个简单的 demo
I am assuming you want to show only
x
and notfoo
andbar
. you can specify the column list incolumnToolPanel.setColumnLayout
and only those column will show up in the side panel.here is a simple demo