My attempt to remove rows from the bottom of a table using the deleteRow() method in Tabulator, a JavaScript table library integrated with vue.js v-on directive, is not successful.
Even though I tried using table.deleteRow(1) (passing the row index as an argument according to the documentation), it throws an error despite having a row at index 1.
methods: {
myDeleteRow: this.anyTable.deleteRow(1)
}
}
tabulator.js?6dbe:7464 Uncaught (in promise) Delete Error - No matching row found
(anonymous) @ tabulator.js?6dbe:7464
Tabulator.deleteRow @ tabulator.js?6dbe:7447
myDeleteRow @ TermsConditions.vue?2be7:95
invoker @ vue.esm.js?efeb:2128
fn._withTask.fn._withTask @ vue.esm.js?efeb:1913
Delete Error - No matching row found: 1
tabulator.js?6dbe:7464 Uncaught (in promise) Delete Error - No matching row found
(anonymous) @ tabulator.js?6dbe:7464
Tabulator.deleteRow @ tabulator.js?6dbe:7447
myDeleteRow @ TermsConditions.vue?2be7:95
invoker @ vue.esm.js?efeb:2128
fn._withTask.fn._withTask @ vue.esm.js?efeb:1913