And this is the current demo https://jsfiddle.net/n8ahts2u/2/. Here I use trimRows() plugin inside the afterOnCellMouseDown hook. The only difference in this fiddle is, a selected row must delete (trim) itself, but it doesn’t happen, too.
Hello, Aleksandra! I’ll answer your 2nd question first: in the fiddle, the current row must delete itself, only because I decided to build a bit more simple solution for now
Alright then, and if I want to have possibility to filter data on a row click and a capability to edit cells both?
That’s it’s a matter of changing the navigation. Maybe you could filter the rows on one action and edit them on another?
Handsontable allows you to change the logic for click (left and right mouse button) and handling 2-key keyboard combinations so it is a matter of choosing the best option to satisfy your customers.
As a result, if have a table with 2 columns, I get the result I want, but I then need the table to be capable of getting untrimmed, when I click the row again.
the trimmed row cannot be clicked as it is hidden. And as I suppose, when you click neighbor rows they also get trimmed. Maybe you need a button or a key-combination to use the untrimRows() method.
The situation is, that I must use the remaining row (well, which I insert) - to click on it, so the previously trimmed rows returned again and/or table got rendered itself back to default. That’s exactly how Power BI Table works. I think I should choose some time and find any GIF or video to show its capabilities.
If you have a general idea you could write down the visual and physical indexes that are taking part in this process and then we’ll be able to draw a map on how to process those changes.