@smartbit4all/ng-client 3.3.70 → 3.3.71
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.
- package/esm2020/lib/smart-grid/smart-grid.component.mjs +7 -5
- package/fesm2015/smartbit4all-ng-client.mjs +6 -4
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +6 -4
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.71.tgz +0 -0
- package/smartbit4all-ng-client-3.3.70.tgz +0 -0
|
@@ -9730,11 +9730,9 @@ class SmartGridComponent {
|
|
|
9730
9730
|
else if (kind === GridViewDescriptorKindEnum.CARDS) {
|
|
9731
9731
|
layoutDef = SmartLayoutDef.CARD;
|
|
9732
9732
|
}
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
layoutDef = SmartLayoutDef.TABLE;
|
|
9733
|
+
if (layoutDef) {
|
|
9734
|
+
this.smartGrid.layoutDef = layoutDef;
|
|
9736
9735
|
}
|
|
9737
|
-
this.smartGrid.layoutDef = layoutDef;
|
|
9738
9736
|
}
|
|
9739
9737
|
if (gridModel?.paginator !== undefined) {
|
|
9740
9738
|
this.smartGrid.paginator = gridModel.paginator;
|
|
@@ -9744,6 +9742,10 @@ class SmartGridComponent {
|
|
|
9744
9742
|
else {
|
|
9745
9743
|
console.error('GridModel is undefined in component!');
|
|
9746
9744
|
}
|
|
9745
|
+
if (!this.smartGrid.layoutDef) {
|
|
9746
|
+
// fallback, default TABLE
|
|
9747
|
+
this.smartGrid.layoutDef = SmartLayoutDef.TABLE;
|
|
9748
|
+
}
|
|
9747
9749
|
if (this.smartGrid.layoutDef === SmartLayoutDef.TABLE) {
|
|
9748
9750
|
this.renderTable();
|
|
9749
9751
|
}
|