ninegrid2 6.406.0 → 6.408.0

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.
@@ -23563,9 +23563,18 @@ class ngView
23563
23563
 
23564
23564
  //5. nodata resize
23565
23565
  var h = this.#height.body - this.#height.thead - this.#height.tfoot - this.#getTrHeight();
23566
+
23567
+ console.log(this.#owner, this.#owner.viewRecords.length, this.#owner.getAttribute("display-row-count"));
23568
+ if (this.#owner.getAttribute("display-row-count")) {
23569
+ if (this.#owner.viewRecords.length >= Number(this.#owner.getAttribute("display-row-count") || 0)) {
23570
+ h = 0;
23571
+ }
23572
+ }
23573
+
23566
23574
  $(".ng-container tbody.bindable tr.nodata", this.#owner.body).height(h);
23575
+
23567
23576
 
23568
- console.log("#refreshData", this.#owner, this.#height.body, this.#height.thead, this.#height.tfoot, this.#getTrHeight(), h);
23577
+ console.log("#refreshData", this.#owner.viewRecords);
23569
23578
  //this.isLastPage = h > 0 ? true : false;
23570
23579
 
23571
23580
 
@@ -23561,9 +23561,18 @@ class ngView
23561
23561
 
23562
23562
  //5. nodata resize
23563
23563
  var h = this.#height.body - this.#height.thead - this.#height.tfoot - this.#getTrHeight();
23564
+
23565
+ console.log(this.#owner, this.#owner.viewRecords.length, this.#owner.getAttribute("display-row-count"));
23566
+ if (this.#owner.getAttribute("display-row-count")) {
23567
+ if (this.#owner.viewRecords.length >= Number(this.#owner.getAttribute("display-row-count") || 0)) {
23568
+ h = 0;
23569
+ }
23570
+ }
23571
+
23564
23572
  $(".ng-container tbody.bindable tr.nodata", this.#owner.body).height(h);
23573
+
23565
23574
 
23566
- console.log("#refreshData", this.#owner, this.#height.body, this.#height.thead, this.#height.tfoot, this.#getTrHeight(), h);
23575
+ console.log("#refreshData", this.#owner.viewRecords);
23567
23576
  //this.isLastPage = h > 0 ? true : false;
23568
23577
 
23569
23578
 
@@ -364,9 +364,18 @@ export class ngView
364
364
 
365
365
  //5. nodata resize
366
366
  var h = this.#height.body - this.#height.thead - this.#height.tfoot - this.#getTrHeight();
367
+
368
+ console.log(this.#owner, this.#owner.viewRecords.length, this.#owner.getAttribute("display-row-count"))
369
+ if (this.#owner.getAttribute("display-row-count")) {
370
+ if (this.#owner.viewRecords.length >= Number(this.#owner.getAttribute("display-row-count") || 0)) {
371
+ h = 0;
372
+ }
373
+ }
374
+
367
375
  $(".ng-container tbody.bindable tr.nodata", this.#owner.body).height(h);
376
+
368
377
 
369
- console.log("#refreshData", this.#owner, this.#height.body, this.#height.thead, this.#height.tfoot, this.#getTrHeight(), h);
378
+ console.log("#refreshData", this.#owner.viewRecords);
370
379
  //this.isLastPage = h > 0 ? true : false;
371
380
 
372
381
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.406.0",
4
+ "version": "6.408.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
package/src/etc/ngView.js CHANGED
@@ -364,9 +364,18 @@ export class ngView
364
364
 
365
365
  //5. nodata resize
366
366
  var h = this.#height.body - this.#height.thead - this.#height.tfoot - this.#getTrHeight();
367
+
368
+ console.log(this.#owner, this.#owner.viewRecords.length, this.#owner.getAttribute("display-row-count"))
369
+ if (this.#owner.getAttribute("display-row-count")) {
370
+ if (this.#owner.viewRecords.length >= Number(this.#owner.getAttribute("display-row-count") || 0)) {
371
+ h = 0;
372
+ }
373
+ }
374
+
367
375
  $(".ng-container tbody.bindable tr.nodata", this.#owner.body).height(h);
376
+
368
377
 
369
- console.log("#refreshData", this.#owner, this.#height.body, this.#height.thead, this.#height.tfoot, this.#getTrHeight(), h);
378
+ console.log("#refreshData", this.#owner.viewRecords);
370
379
  //this.isLastPage = h > 0 ? true : false;
371
380
 
372
381