From 0663acc47174bf86c02cdb7291e1c0d7b98551ed Mon Sep 17 00:00:00 2001 From: Jonas Zipprick Date: Fri, 29 Dec 2017 11:36:05 +0100 Subject: Add ContentMode for the description of MenuItems (#9984) Adds the ability to set the content mode for the description of a menu item that is part of a menu bar. This functionality was already available for every AbstractComponent but missing for the menu items of menu bars. If no content mode is specified it defaults to the PREFORMATED content mode. --- shared/src/main/java/com/vaadin/shared/ui/menubar/MenuBarConstants.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shared/src') diff --git a/shared/src/main/java/com/vaadin/shared/ui/menubar/MenuBarConstants.java b/shared/src/main/java/com/vaadin/shared/ui/menubar/MenuBarConstants.java index 2d211824e6..4f5fcb72ff 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/menubar/MenuBarConstants.java +++ b/shared/src/main/java/com/vaadin/shared/ui/menubar/MenuBarConstants.java @@ -24,6 +24,8 @@ public class MenuBarConstants implements Serializable { @Deprecated public static final String ATTRIBUTE_ITEM_DESCRIPTION = "description"; @Deprecated + public static final String ATTRIBUTE_ITEM_CONTENT_MODE = "contentmode"; + @Deprecated public static final String ATTRIBUTE_ITEM_ICON = "icon"; @Deprecated public static final String ATTRIBUTE_ITEM_DISABLED = "disabled"; -- cgit v1.2.3