Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
vegegoku committed Nov 2, 2023
1 parent 4a2b266 commit 85a6c24
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
})
Expand Down Expand Up @@ -329,7 +329,7 @@ private void initSelectExample() {
.addChangeListener((oldValue, newValue) -> {
Notification.create("Icons selected : ")
.apply(self -> newValue.forEach(self::appendChild))
.show();
.show();
})
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -103,7 +104,7 @@ private void scrollableTable() {
}
return text("");
}))
.addPlugin(new BodyScrollPlugin<>())
.addPlugin(new BodyScrollPlugin<Contact>().setConfig(new BodyScrollPluginConfig(3)))
.addPlugin(new HeaderBarPlugin<Contact>("Demo table", "Sample table table demonstrating the feature")
.addActionElement(new HeaderBarPlugin.HoverTableAction<>())
.addActionElement(new HeaderBarPlugin.CondenseTableAction<>())
Expand Down

0 comments on commit 85a6c24

Please sign in to comment.