Hi coders,
I’m doing a table in Bootstrap that show me data using method get with Api service.
My mentor have used a JAvascript function called renderTable ,but i don’t understand what exactly does it do.
function renderTable() {
$tableFatture.bootstrapTable('destroy');
$tableFatture.bootstrapTable({
striped: true,
pagination: true,
pageSize: 10,
pageList: [10, 25, 50, 100],
singleSelect: false,
idField: 'idInvoice',
sortable: true,
columns: [
{ field: 'cmdId', title: 'Cmd', formatter: 'cmdFormatter', sortable: false, width: '7%' },
{ field: 'idInvoice', title: 'Invoice', sortable: true },
{ field: 'clientDescription', title: 'Client', sortable: true },
{ field: 'projectDescription', title: 'Project', sortable: true },
{ field: 'dateInvoice', title: 'Date', sortable: true }
]
});
}