All Projects → vaadin → vaadin-select

vaadin / vaadin-select

Licence: Apache-2.0 license
Customizable Web Component similar to a native browser select. Part of the Vaadin components.

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vaadin-select

vaadin-context-menu
The responsive Web Component for showing context dependent items for any element on the page. Part of the Vaadin components.
Stars: ✭ 26 (+44.44%)
Mutual labels:  webcomponents, web-components, vaadin, polymer2
web-components
A set of high-quality standards based web components for enterprise web applications. Part of Vaadin 20+
Stars: ✭ 322 (+1688.89%)
Mutual labels:  webcomponents, web-components, vaadin
Vaadin Core
An evolving set of free, open source web components for building mobile and desktop web applications in modern browsers.
Stars: ✭ 382 (+2022.22%)
Mutual labels:  webcomponents, web-components, vaadin
vaadin-dialog
High quality web component for modal dialogs. Part of the Vaadin platform.
Stars: ✭ 15 (-16.67%)
Mutual labels:  webcomponents, vaadin, polymer2
vaadin-checkbox
The Web Component for customized checkboxes. Part of the Vaadin components.
Stars: ✭ 18 (+0%)
Mutual labels:  webcomponents, web-components, vaadin
vaadin-split-layout
The Web Component which allows you to partition a layout into resizeable areas. Part of the Vaadin components.
Stars: ✭ 40 (+122.22%)
Mutual labels:  webcomponents, vaadin, polymer2
toggle-icon
toggle-icon is a custom element created with Polymer. It provides an extremely powerful and customizable switch that looks like a paper-icon-button.
Stars: ✭ 21 (+16.67%)
Mutual labels:  webcomponents, web-components, polymer2
vaadin-icons
Vaadin Icons is a collection of 600+ unique icons designed for web applications
Stars: ✭ 59 (+227.78%)
Mutual labels:  webcomponents, vaadin, polymer2
Vaadin
An evolving set of open source web components for building mobile and desktop web applications in modern browsers.
Stars: ✭ 424 (+2255.56%)
Mutual labels:  webcomponents, web-components, vaadin
Wired Elements
Collection of custom elements that appear hand drawn. Great for wireframes or a fun look.
Stars: ✭ 8,848 (+49055.56%)
Mutual labels:  webcomponents, web-components
Funcy.js
funcy.js - a functional web components wrapper
Stars: ✭ 87 (+383.33%)
Mutual labels:  webcomponents, web-components
Vaadin Upload
The Web Component for uploading multiple files with progress indication. Part of the Vaadin components.
Stars: ✭ 87 (+383.33%)
Mutual labels:  webcomponents, vaadin
Webcomponents From Zero To Hero
An introduction to writing raw web components.
Stars: ✭ 70 (+288.89%)
Mutual labels:  webcomponents, web-components
Vaadin Form Layout
The Web Component providing configurable responsive layout for form elements. Part of the Vaadin components.
Stars: ✭ 15 (-16.67%)
Mutual labels:  webcomponents, vaadin
Beverage Starter Flow
Simple Example Web Application for Vaadin Flow
Stars: ✭ 24 (+33.33%)
Mutual labels:  webcomponents, vaadin
Polymer3 Webpack Starter
Polymer 3 starter built with Vaadin components and Vaadin.Router library, using webpack and modern tools
Stars: ✭ 99 (+450%)
Mutual labels:  webcomponents, web-components
Vanilla Hamburger
Animated hamburger menu icons for modern web apps (1.8 KB) 🍔
Stars: ✭ 110 (+511.11%)
Mutual labels:  webcomponents, web-components
Blazor.fast
A tiny wrapper around Fast and Fluent Web Components to integrate with Blazor and easily use the EditForm components
Stars: ✭ 23 (+27.78%)
Mutual labels:  webcomponents, web-components
Aybolit
Lightweight web components library built with LitElement.
Stars: ✭ 90 (+400%)
Mutual labels:  webcomponents, web-components
Nutmeg
Build, test, and publish vanilla Web Components with a little spice
Stars: ✭ 111 (+516.67%)
Mutual labels:  webcomponents, web-components

<vaadin-select>

⚠️ Starting from Vaadin 20, the source code and issues for this component are migrated to the vaadin/web-components monorepository. This repository contains the source code and releases of <vaadin-select> for the Vaadin versions 10 to 19.

<vaadin-select> is a Web Component similar to a native browser select element, part of the Vaadin components.

Live Demo | API documentation

npm version Published on webcomponents.org Published on Vaadin Directory Discord

<vaadin-select></vaadin-select>
<script>
  document.querySelector('vaadin-select').renderer = root => {
    if (root.firstElementChild) {
      return;
    }

    // Note that innerHTML is only used for demo purposes here!
    // Prefer using a templating library instead.
    root.innerHTML = `
      <vaadin-list-box>
        <vaadin-item>Option one</vaadin-item>
        <vaadin-item>Option two</vaadin-item>
        <vaadin-item>Option three</vaadin-item>
        <hr>
        <vaadin-item disabled>Option four</vaadin-item>
      </vaadin-list-box>
    `;
  };
</script>

Screenshot of vaadin-select

Installation

The Vaadin components are distributed as Bower and npm packages. Please note that the version range is the same, as the API has not changed. You should not mix Bower and npm versions in the same application, though.

Unlike the official Polymer Elements, the converted Polymer 3 compatible Vaadin components are only published on npm, not pushed to GitHub repositories.

Polymer 2 and HTML Imports Compatible Version

Install vaadin-select:

bower i vaadin/vaadin-select --save

Once installed, import it in your application:

<link rel="import" href="bower_components/vaadin-select/vaadin-select.html">

Polymer 3 and ES Modules Compatible Version

Install vaadin-select:

npm i @vaadin/vaadin-select --save

Once installed, import it in your application:

import '@vaadin/vaadin-select/vaadin-select.js';

Getting started

Vaadin components use the Lumo theme by default.

To use the Material theme, import the correspondent file from the theme/material folder.

Entry points

  • The component with the Lumo theme:

    theme/lumo/vaadin-select.html

  • The component with the Material theme:

  • theme/material/vaadin-select.html

  • Alias for theme/lumo/vaadin-select.html:

  • vaadin-select.html

Running demos and tests in a browser

  1. Fork the vaadin-select repository and clone it locally.

  2. Make sure you have npm and Bower installed.

  3. When in the vaadin-select directory, run npm install and then bower install to install dependencies.

  4. Run npm start, browser will automatically open the component API documentation.

  5. You can also open demo or in-browser tests by adding demo or test to the URL, for example:

Running tests from the command line

  1. When in the vaadin-select directory, run polymer test

Following the coding style

We are using ESLint for linting JavaScript code. You can check if your code is following our standards by running npm run lint, which will automatically lint all .js files as well as JavaScript snippets inside .html files.

Big Thanks

Cross-browser Testing Platform and Open Source <3 Provided by Sauce Labs.

Contributing

To contribute to the component, please read the guideline first.

License

Apache License 2.0

Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].