Remove rows that meet a condition

Tags: #<Tag:0x00007f8b28efce90>

I’d like to remove a collection of rows from a table conditionally based on the row’s source data. My current approach is iterating the sourceData and calling hot.alter('remove_row', but I have to keep track of the removed indices in this case since the action mutates the sourceData array. I saw that there’s a hot.alter('remove_row', [[1,1], [2,1]...]) syntax, but it doesn’t seem to work for me.

I just want to do something like DELETE FROM table WHERE row.foo == 'bar'

Hey @ryan.scarbery

it works for an array of arrays https://jsfiddle.net/handsoncode/1ncdkxpm/

and for the array of objects https://jsfiddle.net/handsoncode/941jgvxz/

I guess that I’d need to see the code to help.

I guess that we can close this topic but if you’d need further guidance please send me an email at support@handsontable.com