All Projects → romainsimon → vue-simple-search-dropdown

romainsimon / vue-simple-search-dropdown

Licence: other
✴️ Vue.js simple autocomplete dropdown component

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vue-simple-search-dropdown

Semantic Ui
Semantic is a UI component framework based around useful principles from natural language.
Stars: ✭ 49,729 (+55154.44%)
Mutual labels:  dropdown
wui
Collection of GUI widgets for the web
Stars: ✭ 44 (-51.11%)
Mutual labels:  dropdown
insect
🛠 Highly customisable, minimalistic input x select field for React.
Stars: ✭ 33 (-63.33%)
Mutual labels:  dropdown
react-native-smart-picker
React Native Smart Picker is easy wrapper for React Native Picker. Allows toggling the picker open and closed on iOS and native behaviour on Android.
Stars: ✭ 19 (-78.89%)
Mutual labels:  dropdown
tagselector
Dependency-free JS library that turns select fields in customizable tag clouds
Stars: ✭ 19 (-78.89%)
Mutual labels:  dropdown
vue-my-dropdown
Dropdown box component to vuejs
Stars: ✭ 31 (-65.56%)
Mutual labels:  dropdown
Dropdownmenukit
UIKit drop down menu, simple yet flexible and written in Swift
Stars: ✭ 246 (+173.33%)
Mutual labels:  dropdown
clicky-menus
Simple click-triggered navigation submenus. Accessible and progressively enhanced.
Stars: ✭ 76 (-15.56%)
Mutual labels:  dropdown
react-layer-stack
Layering system for React. Useful for popover/modals/tooltip/dnd application
Stars: ✭ 158 (+75.56%)
Mutual labels:  dropdown
multiselect
Angular Multiselect
Stars: ✭ 29 (-67.78%)
Mutual labels:  dropdown
ScriptableObjectDropdown
Dropdown for ScriptableObjects
Stars: ✭ 40 (-55.56%)
Mutual labels:  dropdown
vue-tags-component
Vue.js 2+ tags component
Stars: ✭ 27 (-70%)
Mutual labels:  dropdown
choc-autocomplete
🏇 Autocomplete Component Package for Chakra UI
Stars: ✭ 286 (+217.78%)
Mutual labels:  dropdown
react-picky
Yet another React multiselect. With checkbox support instead of tags.
Stars: ✭ 78 (-13.33%)
Mutual labels:  dropdown
hv-autocomplete
Fast and flexible autocomplete library
Stars: ✭ 16 (-82.22%)
Mutual labels:  dropdown
Easydropdown
💧 Fantastic dropdown in Swift
Stars: ✭ 254 (+182.22%)
Mutual labels:  dropdown
react-native-autocomplete-dropdown
Dropdown Item picker with search and autocomplete (typeahead) functionality for react native
Stars: ✭ 87 (-3.33%)
Mutual labels:  dropdown
revodropdown
Minimalistic dropdown and auto-complete component with filtering and keyboard support
Stars: ✭ 20 (-77.78%)
Mutual labels:  dropdown
sharingan-rn-modal-dropdown
A simple and customizable react-native dropdown created using react-native-modal and react-native-paper.
Stars: ✭ 77 (-14.44%)
Mutual labels:  dropdown
csc picker
A flutter package to display a country, states, and cities. In addition it gives the possibility to select a list of countries, States and Cities depends on Selected, also you can search country, state, and city all around the world.
Stars: ✭ 25 (-72.22%)
Mutual labels:  dropdown

vue-simple-search-dropdown

A Vue component for a simple searchable dropdown.

No external library is used in this dropdown.

Demo

Demo here: https://romainsimon.github.io/vue-simple-search-dropdown/

Installation

npm install vue-simple-search-dropdown

Browser

Include the script file, then install the component with Vue.use(Dropdown); e.g.:

<script type="text/javascript" src="node_modules/vuejs/dist/vue.min.js"></script>
<script type="text/javascript" src="node_modules/vue-simple-search-dropdown/dist/vue-simple-search-dropdown.min.js"></script>
<script type="text/javascript">
  Vue.use(Dropdown);
</script>

Module

import Dropdown from 'vue-simple-search-dropdown';

Usage

Once installed, it can be used in a template as simply as:

<Dropdown
    :options="[{ id: 1, name: 'Option 1'}, { id: 2, name: 'Option 2'}]"
    v-on:selected="validateSelection"
    v-on:filter="getDropdownValues"
    :disabled="false"
    name="zipcode"
    :maxItem="10"
    placeholder="Please select an option">
</Dropdown>

Options

  • options (required): An array of options with id and name
  • placeholder (optional): A placeholder
  • disabled (optional): true/false
  • name (optional): An input name | default: dropdown
  • maxItem (optional): Max item to show | default: 6

Events

These events are returned from the dropdown and can be catch with v-on

  • selected: An option is selected by click in the dropdown
  • filter: A filter has been applied by typing in the input field

Tips: Using v-on:filter, you can repopulate the dropdown with new options corresponding to the search by making an API call

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].