Can I delete multiple rows in 1 time using a button to trigger?

Tags: #<Tag:0x00007efc6b70c768>

i want to delete those highlighted rows, how can i know the id of each row to send them to the backend?

Hey @orillosajohnearlvyn

It is possible but it take more coding. You can use afterSelectionEnd hook to get the object with start and end coordinates of rows and them put them in the alter method with aremove_rowkey. Also do not forget about theoutsideClickDeselects: false` settings to keep the selection while pressing a button outside the table.

do you have an example on how to use those methods?

Creating a whole demo could take me some time but if there are some parts of the code that you’ve been struggling with I can help.

okay aleksandra, thanks a lot.

1 Like