在extjs中,默认情况下如何使列不可见,就像用户第一次打开时显示所有列一样?

时间:2016-04-04 07:10:05

标签: extjs

当我打开我的网页时,默认显示所有列,我不想默认显示它们,如果用户想要se,他可以勾选该列并查看。 这是我的代码:

  header: "ace",
    width: 50,
    dataIndex: "ace"
},{
    header: "",
    width: ,
    id: "",     
    dataIndex: "ace1"
},{
    header: "s",
    width: 50,
    id: "s",
    dataIndex: "f"

1 个答案:

答案 0 :(得分:2)

使用hidden

  

true隐藏组件。

例如:

{
  header: "Case Count",
  width: 50,
  renderer: LNK,
  dataIndex: "case_count",
  hidden: true
}