I am learning to use the DataTable widget. I would like to delete a table row in some use cases. The API function requires the row’s index but it is unknown. I referred to the documentation but there is no functions to ‘search’ rows.
What is the right approach?
Should I implement a function to get all rows of the data table and iterate over the rows to find the target row to delete? Please advise!
If you do not know the row’s id, your suggested solution (“get all rows of the data table and iterate over the rows to find the target row to delete”) is the right approach. You can get the data table’s rows with the method getRows.