console error Use of deprecated autoTable initiation

Good morning, guys, I'm working on vue js with vuetify it turns out that when I put this to generate a pdf to print it through jspdf and autotable jspdf I get the following in console

this is my code in vue.js

createPdf() {
  var doc = new jsPDF()
  var rows =[];
  
  var columns= [
    { header: 'Code', dataKey: 'code' },
    { header: 'Name', dataKey: 'namearticle' },
    { header: 'Category', dataKey: 'category' },
  ];
  this.articles.map(function(x){
    rows.push({code:x.code,namearticle:x.namearticle,category:x.category});
  });
  doc.autoTable(columns,rows)
  doc.save("table.pdf");
}

this is in methods in vue.js but this code works, but this comes out in console Use of deprecated autoTable initiation



from Recent Questions - Stack Overflow https://ift.tt/3xmfvre
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations