|
2 | 2 | * #%L |
3 | 3 | * Grid Helpers Add-on |
4 | 4 | * %% |
5 | | - * Copyright (C) 2022 - 2024 Flowing Code |
| 5 | + * Copyright (C) 2022 - 2025 Flowing Code |
6 | 6 | * %% |
7 | 7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
8 | 8 | * you may not use this file except in compliance with the License. |
|
25 | 25 | import com.flowingcode.vaadin.addons.GithubLink; |
26 | 26 | import com.flowingcode.vaadin.addons.gridhelpers.CheckboxColumn.CheckboxColumnConfiguration; |
27 | 27 | import com.flowingcode.vaadin.addons.gridhelpers.CheckboxColumn.CheckboxPosition; |
| 28 | +import com.flowingcode.vaadin.jsonmigration.JsonMigration; |
28 | 29 | import com.vaadin.flow.component.Component; |
29 | 30 | import com.vaadin.flow.component.Text; |
30 | 31 | import com.vaadin.flow.component.button.Button; |
|
58 | 59 | @GithubLink("https://github.com/FlowingCode/GridHelpers") |
59 | 60 | @StyleSheet("context://gridhelpers/styles.css") |
60 | 61 | @JavaScript("context://gridhelpers/gridhelpers-demo.js") |
61 | | -@ExtensionMethod(GridHelper.class) |
| 62 | +@ExtensionMethod(value = {GridHelper.class, JsonMigration.class}, suppressBaseMethods = true) |
62 | 63 | public class AllFeaturesDemo extends Div { |
63 | 64 |
|
64 | 65 | private final CheckboxColumn<Person> activeCheckboxColumn; |
@@ -302,7 +303,8 @@ private int getHeightByRows(Grid<Person> grid) { |
302 | 303 | private void updateHeightByRowsField(Grid<?> grid, IntegerField field) { |
303 | 304 | grid.getElement().executeJs("return") |
304 | 305 | .then(x -> grid.getElement() |
305 | | - .executeJs("return window.Vaadin.Flow.fcGridHelperDemoConnector.getViewportRowCount(this)") |
| 306 | + .executeJs( |
| 307 | + "return window.Vaadin.Flow.fcGridHelperDemoConnector.getViewportRowCount(this)") |
306 | 308 | .then(Integer.class, rows -> { |
307 | 309 | field.setValue(rows); |
308 | 310 | field.setMin(1); |
|
0 commit comments