Skip to content

Commit

Permalink
fix(demo): avoid use of deprecated constructor
Browse files Browse the repository at this point in the history
Close #133
  • Loading branch information
javier-godoy authored and paodb committed Feb 24, 2023
1 parent 6f99888 commit 2be3636
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.setValue(selectedBooks);

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 2be3636

Please sign in to comment.