Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 1014 Bytes

vaadin-directory-description.md

File metadata and controls

22 lines (14 loc) · 1014 Bytes

<vaadin-combo-box>

Available in Vaadin_Directory

<vaadin-combo-box> is a Web Component combining a dropdown list with an input field for filtering the list of items, part of the Vaadin components.

Screenshot of vaadin-combo-box

Example Usage

<vaadin-combo-box label="User" placeholder="Please select" item-value-path="email" item-label-path="email"></vaadin-combo-box>

<script>
  const comboBox = document.querySelector('vaadin-combo-box');

  fetch('https://randomuser.me/api?results=100&inc=name,email')
    .then(res => res.json())
    .then(json => comboBox.items = json.results);
</script>