diff options
author | Leif Åstrand <legioth@gmail.com> | 2018-02-06 16:32:41 +0200 |
---|---|---|
committer | Ilia Motornyi <elmot@vaadin.com> | 2018-02-06 16:32:41 +0200 |
commit | 002c188e2b8ba713d361d90ab5a0b7d26599465f (patch) | |
tree | 13f830d4ebde0bfe0efc0255fc9621ef44f76233 /shared | |
parent | 89d2954fa6fd96297fb9f3108b9df7cbdb3c274f (diff) | |
download | vaadin-framework-002c188e2b8ba713d361d90ab5a0b7d26599465f.tar.gz vaadin-framework-002c188e2b8ba713d361d90ab5a0b7d26599465f.zip |
Allow configuring content modes for Grid cell tooltips (#10396)
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/grid/GridState.java | 25 |
1 files changed, 25 insertions, 0 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 f1b6550912..76d2bb4f18 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.TabIndexState; +import com.vaadin.shared.ui.label.ContentMode; /** * The shared state for the {@link com.vaadin.ui.components.grid.Grid} component @@ -209,4 +210,28 @@ public class GridState extends TabIndexState { @DelegateToWidget public boolean columnReorderingAllowed; + /** + * The content mode used for cell tooltips. + * + * @since + */ + /* + * When porting this to the v7 version in Framework 8, the default should be + * changed to PREFORMATTED to preserve the more secure default that has + * accidentally been used there. + */ + public ContentMode cellTooltipContentMode = ContentMode.HTML; + + /** + * The content mode used for row tooltips. + * + * @since + */ + /* + * When porting this to the v7 version in Framework 8, the default should be + * changed to PREFORMATTED to preserve the more secure default that has + * accidentally been used there. + */ + public ContentMode rowTooltipContentMode = ContentMode.HTML; + } |