Collapse Row Event Listener - clicking on - or +

Tags: #<Tag:0x00007efc61ca4590>

I am having a hard time finding a listener or a way to fire off a function after clicking the “-” or “+” Icons on the nested rows.

I’ve tried afterUntrimRow, afterOnCellMouseDown (this only works if they click in the cell, not on the button), afterHideRows, and I’ve tried adding a manual click listener with jquery on the button but not even that is being called.

My end goal is that I have cells in the “header” rows of the nested rows plugin that I want merged, so when the “children” rows are collapsed or expanded, I need to kick off a function to re-calculate which rows need merged cells, and update the table.

I’m on 8.2.0

Is there any way that I can create a listener that will fire after either collapsing or expanding the nested rows?

Thanks

Hi @maria.spalding

nestedRows functionality doesn’t provide a full scope of hooks and methods yet.
There are no hooks for collapsing/expanding rows and the same operations are only available via private API https://jsfiddle.net/handsoncode/mnse4q90/

I see. Thank you for the clarification!