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 6ebe6a8 commit c09855a
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 c09855a

Please sign in to comment.