console
const tabledata = [
];
const table = new Tabulator('#app', {
layout: 'fitColumns',
responsiveLayout: "hide",
tooltips: true,
addRowPos: "top",
history: true,
pagination: "remote",
ajaxURL: "http://localhost:3000/mock/table",
paginationDataSent: {
"page": "start",
"size": 'end',
},
paginationSize: 5,
movableColumns: true,
resizableRows: true,
columns: [
{ title: 'Name', field: 'name', width: 150 },
{ title: 'Age', field: 'age', hozAlign: 'left', formatter: 'progress' },
{ title: 'Favourite Color', field: 'col' },
{ title: 'Data of Birth', field: 'dob', sorter: 'date', hozAlign: 'center' },
],
})
<div id="app"></div>
<link href="https://unpkg.com/tabulator-tables@4.6.2/dist/css/tabulator.min.css" rel="stylesheet">
<script type="text/javascript" src="https://unpkg.com/tabulator-tables@4.6.2/dist/js/tabulator.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
#app {
width: 100%;
}