最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - CollapseExpand table columns (not rows) - Stack Overflow

programmeradmin1浏览0评论

I have a large report currently rendered as a regular HTML table. I'd like to be able to group columns together and expand/collapse them with a button.

This is a very mon practice for rows but not so much for columns. I was wondering if anyone has any tips for doing it with columns.

My stack includes jquery so that's available to you (though certainly not required!).

I have a large report currently rendered as a regular HTML table. I'd like to be able to group columns together and expand/collapse them with a button.

This is a very mon practice for rows but not so much for columns. I was wondering if anyone has any tips for doing it with columns.

My stack includes jquery so that's available to you (though certainly not required!).

Share Improve this question edited Oct 3, 2016 at 5:10 Augustus 1,5092 gold badges17 silver badges31 bronze badges asked Oct 2, 2009 at 20:37 Michael HarenMichael Haren 108k41 gold badges171 silver badges206 bronze badges 1
  • Apparently the keywords I was missing in my search were "show/hide". Possible dupe: stackoverflow./questions/455958/… – Michael Haren Commented Oct 2, 2009 at 20:39
Add a ment  | 

1 Answer 1

Reset to default 6

Use the columnManager plugin. Can't be easier.

发布评论

评论列表(0)

  1. 暂无评论