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 committed Feb 9, 2023
1 parent a0e55d5 commit 9549980
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 9549980

Please sign in to comment.