@webtypen/webframez-core 0.3.107 → 0.3.108
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.
|
@@ -554,10 +554,9 @@ class Datatable {
|
|
|
554
554
|
if (!this.columns) {
|
|
555
555
|
return null;
|
|
556
556
|
}
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
return this.columns;
|
|
557
|
+
const columns = typeof this.columns === "function" ? yield this.columns(req) : this.columns;
|
|
558
|
+
// Conditional definitions are absent columns, including for saved layouts and display options.
|
|
559
|
+
return columns ? Object.fromEntries(Object.entries(columns).filter(([, column]) => column != null && column !== false)) : columns;
|
|
561
560
|
});
|
|
562
561
|
}
|
|
563
562
|
getOnPressLink(req) {
|
package/package.json
CHANGED