An open API service indexing awesome lists of open source software.

https://github.com/vaadin-component-factory/multiple-select

An extended version of Vaadin Select supporting multiple-items selection
https://github.com/vaadin-component-factory/multiple-select

Last synced: 3 months ago
JSON representation

An extended version of Vaadin Select supporting multiple-items selection

Awesome Lists containing this project

README

        

# Multiple Select

This component is an extended version of Vaadin Select supporting multiple-items selection. It is the Vaadin 14 Java integration of @vaadin-component-factory/vcf-multi-select.

## Install

To use the component in an application using maven, add the following dependency to your pom.xml:

```

com.vaadin.componentfactory
multiple-select
${component.version}

```

## Usage

The component is intended to be used in the same way as Vaadin Select. For example,

```
MultipleSelect labelSelect = new MultipleSelect<>();
labelSelect.setItems("Option one", "Option two");
labelSelect.setLabel("Label");

MultipleSelect placeholderSelect = new MultipleSelect<>();
placeholderSelect.setItems("Option one", "Option two");
placeholderSelect.setPlaceholder("Placeholder");

MultipleSelect valueSelect = new MultipleSelect<>();
valueSelect.setItems("Value", "Option one", "Option two");
valueSelect.setValue("Value");

add(labelSelect, placeholderSelect, valueSelect);
```

## Licnese

Apache License 2