From 0a31244053c686a31ddb19ccc0447eb2182e82e8 Mon Sep 17 00:00:00 2001 From: Frank Hossfeld Date: Sun, 28 Jul 2024 17:55:40 +0200 Subject: [PATCH] improve SummaryPluginConfig --- .../datatable/plugins/summary/SummaryPluginConfig.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/domino-ui/src/main/java/org/dominokit/domino/ui/datatable/plugins/summary/SummaryPluginConfig.java b/domino-ui/src/main/java/org/dominokit/domino/ui/datatable/plugins/summary/SummaryPluginConfig.java index cf848d7ba..27b514f98 100644 --- a/domino-ui/src/main/java/org/dominokit/domino/ui/datatable/plugins/summary/SummaryPluginConfig.java +++ b/domino-ui/src/main/java/org/dominokit/domino/ui/datatable/plugins/summary/SummaryPluginConfig.java @@ -19,7 +19,15 @@ public class SummaryPluginConfig implements PluginConfig { - private boolean removeOnEmptyData = false; + private boolean removeOnEmptyData; + + public SummaryPluginConfig() { + this(false); + } + + public SummaryPluginConfig(boolean removeOnEmptyData) { + this.removeOnEmptyData = removeOnEmptyData; + } /** * @return boolean, true will cause the plugin to remove the summary records for empty data