Skip to content

Commit

Permalink
fix: do not use Vaadin 24 deprecated constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
flang committed Mar 3, 2023
1 parent d442353 commit 985e449
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ public OrientationDemo() {
twinColGrid.addColumn(Book::getTitle).setHeader("Title").setSortable(true);

FormLayout formLayout = new FormLayout();
Select<TwinColGrid.Orientation> orientationField = new Select<>(Orientation.values());
Select<TwinColGrid.Orientation> orientationField = new Select<>();
orientationField.setItems(Orientation.values());
orientationField.addValueChangeListener(ev -> twinColGrid.withOrientation(ev.getValue()));
orientationField.setValue(twinColGrid.getOrientation());
orientationField.setWidth("225px");
Expand Down

0 comments on commit 985e449

Please sign in to comment.