diff options
author | Jonas Zipprick <jonas.zipprick@gmail.com> | 2017-12-29 11:36:05 +0100 |
---|---|---|
committer | Aleksi Hietanen <aleksi@vaadin.com> | 2017-12-29 12:36:05 +0200 |
commit | 0663acc47174bf86c02cdb7291e1c0d7b98551ed (patch) | |
tree | 2c3076f2a1b2d376575555b7eb2a8aee7a5ce893 /shared/src | |
parent | 1619d1f0bbd41de3f175b9eb2f34b468ec7e0367 (diff) | |
download | vaadin-framework-0663acc47174bf86c02cdb7291e1c0d7b98551ed.tar.gz vaadin-framework-0663acc47174bf86c02cdb7291e1c0d7b98551ed.zip |
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.
Diffstat (limited to 'shared/src')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ui/menubar/MenuBarConstants.java | 2 |
1 files changed, 2 insertions, 0 deletions
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"; |