开发者

How to replicate the column section option into a button in a grid's topbar?

开发者 https://www.devze.com 2023-03-17 19:10 出处:网络
In Extjs 4 every column has an option for selecting the visible columns, like this: How can I replicate the same functionality into th开发者_StackOverflow社区e grid\'s topbar?

In Extjs 4 every column has an option for selecting the visible columns, like this:

How to replicate the column section option into a button in a grid's topbar?

How can I replicate the same functionality into th开发者_StackOverflow社区e grid's topbar?

Thank you.


Of course you can. Just see the source of Ext.grid.header.Container #getMenu #getMenuItems

  • http://docs.sencha.com/ext-js/4-0/#/api/Ext.grid.header.Container
  • http://docs.sencha.com/ext-js/4-0/source/Container2.html#Ext-grid-header-Container
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号