cilog-lib 1.2.4 → 1.2.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.
@@ -397,35 +397,9 @@ class CilogTableComponent {
397
397
  }
398
398
  onInputNumber(event) {
399
399
  }
400
- //loadLazy(event: LazyLoadEvent) {
401
- // this.loading = true;
402
- // // sort by sortfield
403
- // if (event.sortField) {
404
- // this.datasource.sort((data1, data2) => {
405
- // let value1 = data1[event.sortField];
406
- // let value2 = data2[event.sortField];
407
- // let result = null;
408
- // if (value1 == null && value2 != null)
409
- // result = -1;
410
- // else if (value1 != null && value2 == null)
411
- // result = 1;
412
- // else if (value1 == null && value2 == null)
413
- // result = 0;
414
- // else if (typeof value1 === 'string' && typeof value2 === 'string')
415
- // result = value1.localeCompare(value2);
416
- // else
417
- // result = (value1 < value2) ? -1 : (value1 > value2) ? 1 : 0;
418
- // return (event.sortOrder * result);
419
- // });
420
- // }
421
- // ////imitate db connection over a network
422
- // //setTimeout(() => {
423
- // // if (this.datasource) {
424
- // // this.cars = this.datasource.slice(event.first, (event.first + event.rows));
425
- // // this.loading = false;
426
- // // }
427
- // //}, 1000);
428
- //}
400
+ loadLazy(event) {
401
+ //this.values = event.rows.slice(event.first, (event.first + event.rows));
402
+ }
429
403
  // Sort
430
404
  customSort(event) {
431
405
  let col = this.columns.find(col => col.id == event.field);