NativeSelect extension which allows disabled items

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;
}

Install

Link to this version
TestedReleased 12 February 2018Apache License 2.0
Framework Support
Vaadin 8.0+
Also supported:
Vaadin 7 (1.7.1)
Browser Independent
Install with
Release notes - Version 1.1

Add all public constructors from base component