Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

datatable ajax reload

//declare this var
dtElement: DataTableDirective;

//create method and call it where ever you want to refresh your table
reload(): void {
    this.dtElement.dtInstance.then((dtInstance: DataTables.Api) => {
      dtInstance.draw();
    });
}
Source by datatables.net #
 
PREVIOUS NEXT
Tagged: #datatable #ajax #reload
ADD COMMENT
Topic
Name
9+6 =