Directory

NativeSelectExt7 - NativeSelectExt7 Add-on - Vaadin Add-on Directory

NativeSelect extension which allows disabled items NativeSelectExt7 - NativeSelectExt7 Add-on - Vaadin Add-on Directory
NativeSelectExt7 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; }