Is there a way to automatically load the table when new data is added to it? The data is successfully added to the database, but the table does not update accordingly.
myHtmlPage.html
<ng2-smart-table [settings]="progressTable_Config"
[source]="progressTableSource"
(createConfirm)="addProgressRecord($event)"
(deleteConfirm)="onDeleteConfirm($event)">
myComponentFile.ts
progressTable_Config = {
add: {
addButtonContent: '<i class="nb-plus"></i>',
createButtonContent: '<i class="nb-checkmark"></i>',
cancelButtonContent: '<i class="nb-close"></i>',
confirmCreate: true,
},
edit: {
editButtonContent: '<i class="nb-edit"></i>',
saveButtonContent: '<i class="nb-checkmark"></i>',
cancelButtonContent: '<i class="nb-close"></i>',
confirmEdit: false,
},
delete: {
deleteButtonContent: '<i class="nb-trash"></i>',
confirmDelete: true,
},
actions: {
add: true,
edit: false,
delete: false,
},
columns: {
progress_date: {
title: 'Date',
type: 'date',
filter: false
},
progress_percent: {
title: 'Percentage Completed(%)',
type: 'integer',
filter: false,
},
note: {
title: 'Note',
type: 'string',
filter: false
},
},
};