Do we have any event which fires when we collapse the header?

Tags: #<Tag:0x00007efc645f2870>

Hi,

I want to implement some logic when we collapse the column header. Do we have any event for that.’

Thanks’

Hey @fayejitendra

The events for collapsing are already available in 8.0.0-beta1. It’s not a stable version yet but we’re doing our best to publish it soon.

Here are the resources for beta. I would really appreciate any feedback.

https://cdn.jsdelivr.net/gh/handsontable/handsontable@release/8.0.0-beta.1/dist/handsontable.full.css
https://cdn.jsdelivr.net/gh/handsontable/handsontable@release/8.0.0-beta.1/dist/handsontable.full.js

Related topic https://github.com/handsontable/handsontable/issues/6193

The hooks are

  • afterColumnCollapse
  • afterColumnExpand
  • beforeColumnCollapse
  • beforeColumnExpand

We do not have any public documentation for beta but here https://github.com/handsontable/handsontable/pull/6203/files#diff-1dc39ff18a8b67b43bd116052e584cc0 you can check how they work and what they return.

Could you please let me know when you are planning to release final version.

We’re gathering feedback once we test it well we’ll be able to publish.

ps. tomorrow we’re planning to publish a stable minor version

ok Thanks for the information.