Hi @m_murayama
I checked if we could use any hook (as nestedRows
does not have hook API) and found out that beforeOnCellMouseDown
is the only hook that is called when we click the expand/collapse icon in the row header.
So I’ve used it to check if the clicked element is the collapse/expand button
arguments[2].classList[1] == ‘ht_nestingParent’
Further in the code, I wanted to use updateSettings
method to update the row of a merged area.
However, the updateSettings
method shows the collapsed section. To overcome this limitation I called the collapse method again
hot.getPlugin(‘nestedRows’).collapsingUI.collapseChildren(0);
However, the issue is that the parent does not want to expand.
Here is my latest progress https://jsfiddle.net/sj7pf38b/7/ I wasn’t able to fix the auto-collapsing effect but I think that this can be the start of a good workaround so I wanted to share it with you.