@stemy/ngx-utils 19.9.4 → 19.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7971,11 +7971,11 @@ class DynamicTableComponent {
7971
7971
  }, {});
7972
7972
  });
7973
7973
  this.onClick = output();
7974
- this.loadData = (page, itemsPerPage) => {
7974
+ this.loadData = async (page, itemsPerPage) => {
7975
7975
  const orderBy = this.columnDefs[this.orderBy]?.sort;
7976
- return this.dataLoader(page, itemsPerPage, orderBy, this.orderDescending, this.filter, this.query);
7976
+ const dataLoader = this.dataLoader || this.loadLocalData;
7977
+ return dataLoader.call(this, page, itemsPerPage, orderBy, this.orderDescending, this.filter, this.query);
7977
7978
  };
7978
- this.dataLoader = this.loadLocalData;
7979
7979
  this.placeholder = "";
7980
7980
  this.tableId = UniqueUtils.uuid();
7981
7981
  this.orderBy = "";