diff options
author | Henri Sara <henri.sara@gmail.com> | 2017-03-29 11:18:07 +0300 |
---|---|---|
committer | Pekka Hyvönen <pekka@vaadin.com> | 2017-03-29 11:18:07 +0300 |
commit | f9a9f2c4be0e38d936acab88cba45799fa83ff4a (patch) | |
tree | 59d2d5bbeb39ce2c942981c112e9a4bd3c6fed8d /shared | |
parent | 92ccddf4f2465dae1f43e6087ca25ae41cae637d (diff) | |
download | vaadin-framework-f9a9f2c4be0e38d936acab88cba45799fa83ff4a.tar.gz vaadin-framework-f9a9f2c4be0e38d936acab88cba45799fa83ff4a.zip |
Add Grid.setRowHeight() (#8935)
Fixes #8667
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java b/shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java index 6725d01137..77744a9bb0 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java +++ b/shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java @@ -22,6 +22,7 @@ import java.util.List; import com.vaadin.shared.annotations.DelegateToWidget; import com.vaadin.shared.data.sort.SortDirection; import com.vaadin.shared.ui.AbstractSingleSelectState; + import elemental.json.JsonArray; /** @@ -102,7 +103,7 @@ public class GridState extends AbstractSingleSelectState { /** * Column resize mode in grid. - * + * * @since 7.7.5 */ public ColumnResizeMode columnResizeMode = ColumnResizeMode.ANIMATED; @@ -145,4 +146,12 @@ public class GridState extends AbstractSingleSelectState { @DelegateToWidget public boolean columnReorderingAllowed; + /** + * Explicit row height in pixels for grid rows, or -1 to calculate + * automatically based on the theme. + * + * @since 8.1 + */ + public double rowHeight = -1; + } |