aboutsummaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorArtur <artur@vaadin.com>2017-04-26 11:12:01 +0300
committerHenri Sara <henri.sara@gmail.com>2017-04-26 11:12:01 +0300
commita48e5a1cb8f6c8ae18af19406d3e7ba3c9886c69 (patch)
tree9965868a6606c4ab56f9ec55b8e9090eefcef9f9 /shared
parent2e5b49113439310d2dae9ec86fca3ccdf74833f5 (diff)
downloadvaadin-framework-a48e5a1cb8f6c8ae18af19406d3e7ba3c9886c69.tar.gz
vaadin-framework-a48e5a1cb8f6c8ae18af19406d3e7ba3c9886c69.zip
Add an option for defining number of visible items in a NativeSelect (#9109)
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/nativeselect/NativeSelectState.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/nativeselect/NativeSelectState.java b/shared/src/main/java/com/vaadin/shared/ui/nativeselect/NativeSelectState.java
index c33cc66f82..86872298e6 100644
--- a/shared/src/main/java/com/vaadin/shared/ui/nativeselect/NativeSelectState.java
+++ b/shared/src/main/java/com/vaadin/shared/ui/nativeselect/NativeSelectState.java
@@ -15,6 +15,7 @@
*/
package com.vaadin.shared.ui.nativeselect;
+import com.vaadin.shared.annotations.DelegateToWidget;
import com.vaadin.shared.ui.AbstractSingleSelectState;
/**
@@ -43,6 +44,9 @@ public class NativeSelectState extends AbstractSingleSelectState {
*/
public String emptySelectionCaption = "";
+ @DelegateToWidget
+ public int visibleItemCount = 1;
+
{
primaryStyleName = STYLE_NAME;
}