Flexible selection is to select using autocomplete, aperture, smoothing, and material design attributes.
javascript select option value, select option in javascript, javascript select option set selected, javascript set selected option by text
Features
- no dependencies
- Props allow you to customize a component in different ways
- Slots allow content to be changed anywhere
- Events will let you know everything
- Autocomplete (you can use custom search, you can also disable search entry)
- Keyboard controls (not only through the arrows)
- Support on mobile devices
- Authentication, Error Status, and Success
- Disabled and read-only
- Small and large sizes (as on the boot)
- With the ability to set your own styles, you can write a theme from scratch. 2 Themes:
- Bootstrap 4 (Equal Styles), Material Design
- TypeScript support
- Navigate between tabs
- SSR (server-side view)
- Automatically select the appropriate position for the menu if it exceeds the viewport
Accessible Autocomplete Component Vanilla JavaScript
How to make use of it:
Installation:
yarn add vue-cool-select or npm install --save vue-cool-select
1. Import this plugin, CSS (theme), and add a plugin via Vue.use:
import { CoolSelectPlugin } from 'vue-cool-select' // paste the line below only if you need "bootstrap" theme import 'vue-cool-select/dist/themes/bootstrap.css' // paste the line below only if you need "material-design" theme import 'vue-cool-select/dist/themes/material-design.css' // you can also import your theme Vue.use(CoolSelectPlugin)
2. Use inside another component:
import { CoolSelect } from 'vue-cool-select' export default { components: { CoolSelect }, data () { return { // simple example of items items: ['Item 1', 'Item 2', 'Item 3'], // there will be a selected item selected: null } } }
3. Add to <template>:
<cool-select v-model="selected" :items="items" />
4. Include vue-cool-select on the page.
<script src="https://unpkg.com/vue-cool-select"></script> <!-- paste the line below only if you need "bootstrap" theme --> <link rel="stylesheet" href="https://unpkg.com/vue-cool-select/dist/themes/bootstrap.css"> <!-- paste the line below only if you need "material-design" theme --> <link rel="stylesheet" href="https://unpkg.com/vue-cool-select/dist/themes/material-design.css">
Cool Flexible Select Component, vue cool select Plugin/Github
See Demo And Download
Official Website(iliyaZelenko): Click Here
This superior jQuery/javascript plugin is developed by iliyaZelenko. For extra advanced usage, please go to the official website.