0๐
โ
If you use something like the following in your template code:
<datatable :columns="table_columns" :data="table_rows"></datatable>
And your row Object has for example the id property:
{ "id": 0, "subject": "test" }
You can delete a row (with id 9 for example) using:
let deleteIndex = this.table_rows.findIndex(item => item.id === 9);
this.table_rows.splice(deleteIndex);
Source:stackexchange.com