NativeSelectExt7 - NativeSelectExt7 Add-on - Vaadin Add-on Directory
NativeSelect extension which allows disabled itemsNativeSelectExt7 is a UI component add-on for Vaadin 7 and 8.
For vaadin 8 use version 1.1, for Vaadin 7 the 1.7.1 version.
This component is based on the com.vaadin.v7.ui.NativeSelect version,
so you will have to include the vaadin 7 compatibility layers in your v8 project.
It adds only one new method to disable items:
component.setItemDisabled("Item 4", true);
You can modify the style of the disabled items, by providing your own css
rules. Make sure to test the css rules, since not all browser allow all rules
for the option drop down entries.
Current rules are:
select option:disabled {
background-color: lightgray;
color: black;
}
IssuesSource code
NativeSelectExt7 - NativeSelectExt7 Add-on version 1.0
NativeSelectExt7 - NativeSelectExt7 Add-on version 1.1
Add all public constructors from base component
NativeSelectExt7 - NativeSelectExt7 Add-on version 1.7.1
Vasion for Vaadin 7