From edc3b08defa815d9f65a9589c7a252ad99ea40fa Mon Sep 17 00:00:00 2001 From: Anna Koskinen Date: Thu, 28 Dec 2017 13:49:39 +0200 Subject: Allow setting custom styles to DateField calendar date cells (#10305) Fixes #10304 --- .../java/com/vaadin/shared/ui/datefield/AbstractDateFieldState.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'shared/src/main') diff --git a/shared/src/main/java/com/vaadin/shared/ui/datefield/AbstractDateFieldState.java b/shared/src/main/java/com/vaadin/shared/ui/datefield/AbstractDateFieldState.java index 83544ec6bb..7dab448039 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/datefield/AbstractDateFieldState.java +++ b/shared/src/main/java/com/vaadin/shared/ui/datefield/AbstractDateFieldState.java @@ -106,4 +106,10 @@ public class AbstractDateFieldState extends AbstractFieldState { */ public boolean parsable = true; + /** + * Map of custom style names that correspond with given dates. Each date + * must be set to midnight for the handling logic to work correctly. + */ + public Map dateStyles = new HashMap(); + } -- cgit v1.2.3