diff --git a/basic-forms/src/main/java/org/dominokit/domino/basicforms/client/views/ui/BasicFormsViewImpl.java b/basic-forms/src/main/java/org/dominokit/domino/basicforms/client/views/ui/BasicFormsViewImpl.java index d3ecae48..08feccee 100644 --- a/basic-forms/src/main/java/org/dominokit/domino/basicforms/client/views/ui/BasicFormsViewImpl.java +++ b/basic-forms/src/main/java/org/dominokit/domino/basicforms/client/views/ui/BasicFormsViewImpl.java @@ -218,16 +218,16 @@ private void initSelectExample() { .appendChild(SelectOption.create("nothing", "nothing", "-- please select --") .setSearchable(false) ) - .appendChild(SelectOption.create("USA", "USA", "America (USA)")) - .appendChild(SelectOption.create("ARG", "ARG", "Argentina")) - .appendChild(SelectOption.create("BRA", "BRA", "Brazil")) - .appendChild(SelectOption.create("DEN", "DEN", "Denmark")) - .appendChild(SelectOption.create("CRO", "CRO", "Croatia")) - .appendChild(SelectOption.create("IND", "IND", "India")) - .appendChild(SelectOption.create("SPA", "SPA", "Spain")) - .appendChild(SelectOption.create("FRA", "FRA", "France")) - .appendChild(SelectOption.create("JOR", "JOR", "Jordan")) - .selectAt(0) + .appendChild(SelectOption.create("USA", "USA", "America (USA)")) + .appendChild(SelectOption.create("ARG", "ARG", "Argentina")) + .appendChild(SelectOption.create("BRA", "BRA", "Brazil")) + .appendChild(SelectOption.create("DEN", "DEN", "Denmark")) + .appendChild(SelectOption.create("CRO", "CRO", "Croatia")) + .appendChild(SelectOption.create("IND", "IND", "India")) + .appendChild(SelectOption.create("SPA", "SPA", "Spain")) + .appendChild(SelectOption.create("FRA", "FRA", "France")) + .appendChild(SelectOption.create("JOR", "JOR", "Jordan")) + .selectAt(0) .addChangeListener((oldValue, newValue) -> { Notification.create("Item selected [ " + newValue + " ]").show(); }) @@ -329,7 +329,7 @@ private void initSelectExample() { .addChangeListener((oldValue, newValue) -> { Notification.create("Icons selected : ") .apply(self -> newValue.forEach(self::appendChild)) - .show(); + .show(); }) ) ) diff --git a/datatable/src/main/java/org/dominokit/domino/datatable/client/views/ui/ScrollLoadingDatatableViewImpl.java b/datatable/src/main/java/org/dominokit/domino/datatable/client/views/ui/ScrollLoadingDatatableViewImpl.java index f258173b..484af861 100644 --- a/datatable/src/main/java/org/dominokit/domino/datatable/client/views/ui/ScrollLoadingDatatableViewImpl.java +++ b/datatable/src/main/java/org/dominokit/domino/datatable/client/views/ui/ScrollLoadingDatatableViewImpl.java @@ -21,6 +21,7 @@ import org.dominokit.domino.ui.datatable.TableConfig; import org.dominokit.domino.ui.datatable.plugins.header.HeaderBarPlugin; import org.dominokit.domino.ui.datatable.plugins.pagination.BodyScrollPlugin; +import org.dominokit.domino.ui.datatable.plugins.pagination.BodyScrollPluginConfig; import org.dominokit.domino.ui.datatable.plugins.pagination.SortPlugin; import org.dominokit.domino.ui.datatable.store.LocalListScrollingDataSource; import org.dominokit.domino.ui.elements.DivElement; @@ -103,7 +104,7 @@ private void scrollableTable() { } return text(""); })) - .addPlugin(new BodyScrollPlugin<>()) + .addPlugin(new BodyScrollPlugin().setConfig(new BodyScrollPluginConfig(3))) .addPlugin(new HeaderBarPlugin("Demo table", "Sample table table demonstrating the feature") .addActionElement(new HeaderBarPlugin.HoverTableAction<>()) .addActionElement(new HeaderBarPlugin.CondenseTableAction<>())