I am testing the metronic vue.js theme and using axios to fetch data from a simple API. I can fetch data in my method and output this in the console, but I cannot update the datatable itself.
here is my code:
export default defineComponent({
name: "kt-entity-list",
components: {
KTDatatable,
},
created() {
this.getEntities();
},
data() {
return {
url: "http://localhost:8060/<pre>
Hi Laurence,
Could you please try a code below?
this.tableData.splice(0, this.tableData.length, ...response.data);
this.tableData = response.data;
Can you please give an example of this in Vue?
https://preview.keenthemes.com/html/metronic/docs/general/datatables/subtable