ComboBox - disable input

Hi, I need to disable the input for the combobox. In html I know how to do. But, I can’t find it in the API.


I think it is not possible in Vaadin flow to access the vaadin-text-field member of the combobox to disable the text input.

Nevertheless, I found an interesting solution for your problem.
You can download the vaadin-dropdown-menu polymer component that works in the way you want.

Unfortunately there is not implementation in Vaadin flow for that component. I think it will be available for future Vaadinversions.

However you can create you own binding and communicate the vaadin-dropdown-menu polymer component with the Java companion file.

In the link below, there is an example about how to do it(simple binding):

There is an image in the attachments showing the output.