https://github.com/vaadin-component-factory/vcf-v8-combo-box
Vaadin 8 behaving Combo Box
https://github.com/vaadin-component-factory/vcf-v8-combo-box
Last synced: 21 days ago
JSON representation
Vaadin 8 behaving Combo Box
- Host: GitHub
- URL: https://github.com/vaadin-component-factory/vcf-v8-combo-box
- Owner: vaadin-component-factory
- License: apache-2.0
- Created: 2021-09-28T18:52:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-13T18:20:56.000Z (9 months ago)
- Last Synced: 2025-03-30T19:42:20.768Z (about 2 months ago)
- Language: JavaScript
- Size: 205 KB
- Stars: 3
- Watchers: 8
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ComboBox with Vaadin 8 behavior
This component provides a modified combobox that mimics some of Vaadin 8 combobox behavior:
- the first item is always highlighted (focused) when dropdown is manually open (by clicking the arrow) if no item is already selected.
- the first item is always highlighted (focused) when filtering is triggered by entering some text in the input field. This gives the user the possibility to just press enter to select highlighted item on top.
- the first item is always highlighted (focused) when dropdown is open after clearing the previous selected value with the clear button.
- no item is selected if focusout event is triggered and there was a highlighted item in the dropdown.
The rest of the functionalities are the same as in the Flow ComboBox component.This component is part of Vaadin Component Factory.
## How to use it
Create a new component V8ComboBox and use it like a ComboBox component.
For example:
```java
V8ComboBox comboBox = new V8ComboBox<>("Select an option", "Option 1", "Option 2", "Option 3");
```## Development instructions
Build the project and install the add-on locally:
```
mvn clean install
```
Starting the demo server:Go to vcf-v8-combo-box-demo and run:
```
mvn jetty:run
```This deploys demo at http://localhost:8080
## Using the component in a Flow application
To use the component in an application using maven, add the following dependency to your `pom.xml`:
```com.vaadin.componentfactory
vcf-v8-combo-box
${component.version}```
## Missing features or bugs
You can report any issue or missing feature on [github](https://github.com/vaadin-component-factory/vcf-v8-combo-box/issues).
## Licence
Apache License 2.0