James Ellis

James Ellis

1604672580

A Multiple Taggable Select Autocomplete Dropdown Component for Vue

vue-taggable-select

A Vue component that makes long, unwieldy select boxes user friendly.

What it Does

vue-taggable-select provides an elegant, user-friendly component to replace long, unwieldy multi select elements. Great for users. Simple for developers.

How simple?

This simple:

This simple

<vue-taggable-select
    :taggable="true"
	v-model="fruit" 
	:options="['apple','cherry','banana','pear', 'tomato']"
></vue-taggable-select>

What It Does Not Do

Nope no regular selects. See vue-single-select for this.

Vue Single Select

No ajax loading.

Usage

Install and Use Via CDN

<div id="app">
    <lable>Choose a fruit!</lable>
    <vue-taggable-select
	    v-model="fruit"
	    :options="fruits"
    ></vue-taggable-select>
</div>
<script src="https://unpkg.com/vue@latest"></script>
<script src="https://unpkg.com/vue-taggable-select@latest"></script>
<script>
 new Vue({
     el:"#app",
     data: {
         fruit: null,
         fruits: ['peach','pear','apple','orange']
     }
 });
</script>

Install Via NPM

$ npm i vue-taggable-select

Register it

In your component:

import VueTaggableSelect from "vue-taggable-select";
export default {
components: {
     VueTaggableSelect
  },
  //...
}

Globally:

import VueTaggableSelect from "vue-taggable-select";
Vue.component('vue-taggable-select', VueTaggableSelect);

Use It

<vue-taggable-select
    make-it-taggable="good!"
    :taggable="true"
    v-model="fruit"
    :options="['apple','banana','cherry','tomato']"
    :required="true"
></vue-taggable-select>

Use It Again

<vue-taggable-select
        name="maybe"
        placeholder="pick a post"
        you-want-to-select-a-post="ok"
        v-model="post"
        out-of-all-these-posts="makes sense"
        :options="posts"
        a-post-has-an-id="good for search and display"
        option-key="id"
        the-post-has-a-title="make sure to show these"
        option-label="title"
></vue-taggable-select>

Use It Again

<vue-taggable-select
        you-want-to-select-a-reply="yes"
        v-model="reply"
        out-of-all-these-replies="yep"
        :options="replies"
        a-reply-only-has-a-reply="sounds about right"
        option-label="reply"
        seed-an-initial-value="what's seed mean?"
        initial="seed me"
        you-only-want-20-options-to-show="is 20 enough?"
        :max-results="20"
></vue-taggable-select>

Dont like the Styling?

You can override some of it. Like so:

<vue-taggable-select
        id="selected-reply"
        name="a_reply"
        option-label="reply"
        v-model="reply"
        :options="replies"
        you-like-huge-dropdowns="1000px is long!"
        max-height="1000px"
        :classes='{
            icons: "icons"
            active: "active",
            wrapper: "multi-select-wrapper",
            searchWrapper: "search-wrapper",
            searchInput: "search-input",
            pill: "pill",
            required: "required",
            dropdown: "dropdown"
        }'
></vue-taggable-select>

Then all you need to do is provide some class definitions like so:

.active {
	background-color: pink;
}
.multi-select-wrapper {
	display: block;
	font-size: 16px;
}
.search-input {
	color: black;
}
.pill {
	padding: .5em;
}

… and so on.

Note: Bootstrap 3 Users May want to increase the size of the icons.

If so do this:

.icons svg {
    height: 1em;
    width: 1em;
}

Kitchen Sink

Meh, see props below.

Why vue-taggable-select is better

  1. It handles custom label/value props for displaying options.

    Other select components require you to conform to their format. Which often means data wrangling.

  2. It’s easier on the DOM.

    Other components will load up all the options available in the select element. This can be heavy. vue-taggable-select makes an executive decision that you probably will not want to scroll more than N options before you want to narrow things down a bit. You can change this, but the default is 30.

  3. Snappy Event Handling

    • up and down arrows for selecting options
    • enter to select first match
    • remembers selection on change
    • hit the escape key to, well, escape
    • hit delete to remove the last selection
  4. Lightweight

    • Why are the other packages so big and actually have dependencies?
  5. It works for regular ‘POST backs’ to the server.

    If you are doing a regular post or just gathering the form data you don’t need to do anything extra to provide a name and value for the selected option.

  6. Mine just looks nicer

    A lot nicer!

  7. It’s simple!!

Available Props

props: {
    // This corresponds to v-model
    value: {
        required: true
    },
    taggable: {
        type: Boolean,
        required: false,
        default: () => false
    },
    // Use classes to override the look and feel
    // Provide these EIGHT classes.
    classes: {
        type: Object,
        required: false,
        default: () => {
            return {
                icons: 'icons',
                active: 'active',
                wrapper: "multi-select-wrapper",
                searchWrapper: "search-wrapper",
                searchInput: "search-input",
                pill: "pill",
                required: "required",
                dropdown: "dropdown"
            };
        }
    },
    // Give your input a name
    // Good for posting forms
    name: {
        type: String,
        required: false,
        default: () => ""
    },
    // Your list of things for the select   
    options: {
        type: Array,
        required: false,
        default: () => []
    },
    // Tells vue-taggable-select what key to use
    // for generating option labels
    optionLabel: {
        type: String,
        required: false,
        default: () => null
    },
    // Tells vue-taggable-select the value
    // you want populated in the select for the 
    // input
    optionKey: {
        type: String,
        required: false,
        default: () => null
    },
    // Give your input an html element id
    placeholder: {
        type: String,
        required: false,
        default: () => "Search Here"
    },
    maxHeight: {
        type: String,
        default: () => "220px",
        required: false
    },
    //Give the input an id
    inputId: {
        type: String,
        default: () => "multi-select",
        required: false
    },
    // Seed search text with initial value
    initial: {
        type: String,
        required: false,
        default: () => null
    },
    // Make it required
    required: {
        type: Boolean,
        required: false,
        default: () => false
    },
    // Max number of results to show.
    maxResults: {
        type: Number,
        required: false,
        default: () => 30
    },
    //Meh
    tabindex: {
        type: String,
        required: false,
        default: () => {
            return "";
        }
    },
    // Remove previously selected options
    // via the delete key
    keyboardDelete: {
        type: Boolean,
        required: false,
        default: () => {
            return true;
        }
    },
    // Tell vue-taggable-select how to display
    // selected options
    getOptionDescription: {
        type: Function,
        default(option) {
            if (this.optionKey && this.optionLabel) {
                return option[this.optionKey] + " " + option[this.optionLabel];
            }
            if (this.optionLabel) {
                return option[this.optionLabel];
            }
            if (this.optionKey) {
                return option[this.optionKey];
            }
            return option;
        }
    },
    // Use this to tell vue-taggable-select
    // the values are for doing a submit
    getOptionValue: {
        type: Function,
        default(option) {
            if (this.optionKey) {
                return option[this.optionKey];
            }

            if (this.optionLabel) {
                return option[this.optionLabel];
            }

            return option;
        }
    }
},

Download Details:

Author: robrogers3

Demo: https://codesandbox.io/s/18jz68zn77

Source Code: https://github.com/robrogers3/vue-taggable-select

#vue #vuejs #javascript

What is GEEK

Buddha Community

A Multiple Taggable Select Autocomplete Dropdown Component for Vue
Ethan Hughes

Ethan Hughes

1578335505

Collection of Good Vue Autocomplete Components for Your Vue.js App

The Vue AutoComplete component helps users by providing a list of suggestions to select from as they type. It supports data binding, filtering, and more.

1. vue-suggestion

Suggestion list input for Vue.js, inspired by v-autocomplete.
Your search engine, your CSS, your everything…

vue-suggestion

Demo

Download


2. Accessible Autocomplete

Accessible autocomplete component for vanilla JavaScript and Vue.

Features

  • Accessible, with full support for ARIA attributes and keyboard interactions. Based on the WAI-ARIA Authoring Practices.
  • Available as a JavaScript or Vue component, with React coming soon.
  • Core package available if you want to bring your own rendering layer.
  • Customizable. Easily bring your own CSS, or take full control of the component rendering.
  • Support for asynchronous data fetching.

Autocomplete

Demo

Download


3. Select Auto-Complete

Provides a capability of auto-completed searching for results inside a select input field.

Select Auto-Complete

Download


4. vue-cool-select

Select with autocomplete, slots, bootstrap and material design themes.

Features

  • no dependencies
  • props (30) allow you to customize a component in a various ways
  • slots (13) allow content to be changed anywhere
  • events (8) will let you know about everything
  • autocomplete (you can use custom search, you can also disable the search input)
  • keyboard controls (not only through the arrows)
  • support on mobile devices
  • validation, state of error and success
  • disabled and readonly
  • small and large sizes (as in bootstrap)
  • the ability to set your styles, you can write theme from scratch. 2 themes: Bootstrap 4 (equal styles), Material Design
  • TypeScript support
  • tab navigation
  • SSR (Server-Side Rendering)
  • auto determine the suitable position for the menu if it goes beyond the viewport

vue-cool-select

Demo

Download


5. Vue Form Autocomplete - Simple

Vue Form Autocomplete Custom Component.

Able to use single or multiple select. Use scope slot to change the template

Vue Form Autocomplete - Simple

Demo and Download


6. Vue Tags Input

A simple tags input with typeahead built with Vue.js 2.

Vue Tags Input

Demo

Download


7. At.js for Vue.

At.js is An autocompletion library to autocomplete mentions, smileys etc.

  • Filter/Scroll/Insert/Delete
  • Keyboard/Mouse events
  • Plain-text based, no jQuery, no extra nodes
  • ContentEditable
  • Avatars, custom templates
  • Vue2
  • Vue1

At.js for Vue

Demo

Download


Thank for read!

#vue-autocomplete #autocomplete-component #autocomplete #vue-js #autocomplete-vue

Avav Smith

Avav Smith

1578417846

Collection of 14 Vue Select Component for Vue.js App

Vue select component can handle multiple selections. It’s enabled with the multiple property. Like with the single selection, you can pull out the new value by accessing event. target. value in the onChange callback.

1. Vue GridMultiselect

Simple multi-select component with items displayed in a table like UI.

Vue GridMultiselect

Demo

Download


2. vue-select

Everything you wish the HTML <select> element could do, wrapped up into a lightweight, extensible Vue component.

Vue Select is a feature rich select/dropdown/typeahead component.

Features

  • Tagging
  • Filtering / Searching
  • Vuex Support
  • AJAX Support
  • SSR Support
  • ~20kb Total / ~5kb CSS / ~15kb JS
  • Select Single/Multiple Options
  • Customizable with slots and SCSS variables
  • Tested with Bootstrap 3/4, Bulma, Foundation
  • +95% Test Coverage
  • Zero dependencies

vue-select

Demo

Download


3. @desislavsd/vue-select

Lightweight and mighty select component like Chosen and Select 2 done the Vue way.

Features

  • Uses v-model
  • Single / Multiple selection
  • Tagging + custom key triggers
  • List Filtering / Searching
  • Support for async list source
  • Out of the box AJAX support using fetch
  • Debounce AJAX requests
  • Transparent access to input attributes
  • Highly customizable
  • Zero dependencies

esislavsd/vue-select

Demo

Download


4. v-super-select

An accessible and customizable select/drop down component that features searching, grouping, and virtual scrolling.

v-super-select

Demo

Download


5. vue-dynamic-select

A VueJS plugin that provides a searchable and reactive select list component with no dependencies.

vue-dynamic-select

Download


6. @alfsnd/vue-bootstrap-select

A vue version of bootstrap select

alfsnd/vue-bootstrap-select

Demo

Download


7. vue-selectize

Vanila Vue.js component that mimics Selectize behaviour (no need jquery dependency)

vue-selectize

Demo

Download


8. vue2-selectize

A Selectize wrapper for VueJS 2.

vue2-selectize

Demo

Download


9. v-suggest

A Vue2 plugin for input content suggestions, support keyboard to quick pick.

v-suggest

Demo

Download


10. vue-multi-select

This component gives you a multi/single select with the power of Vuejs components.

vue-multi-select

Demo

Download


11. v-cascade

A lovely component of cascade selector with vue.js (Support both of PC and Mobile)

v-cascade

Demo

Download


12. stf vue select VUE2

stf vue select - most flexible and customized select

For detailed explanation on how things work, checkout the DEMO

stf vue select VUE2

Demo

Download


13. Advanced Vue.js Chained Select

Using Vue.js to chain mulitiple select inputs together.

Advanced Vue.js Chained Select

Demo


14. Vue Select2

A native Vue.js component that provides similar functionality to Select2 without the overhead of jQuery.

Rather than bringing in jQuery just to use Select2 or Chosen, this Vue.js component provides similar functionality without the extra overhead of jQuery, while providing the same awesome data-binding features you expect from Vue. Vue-select has no JavaScript dependencies other than Vue, and is designed to mimic Select2.

Vue Select2

Demo

Download


Thank for read!

#vue-select #vue-select-component #vue-js #select-component

Luna  Mosciski

Luna Mosciski

1600583123

8 Popular Websites That Use The Vue.JS Framework

In this article, we are going to list out the most popular websites using Vue JS as their frontend framework.

Vue JS is one of those elite progressive JavaScript frameworks that has huge demand in the web development industry. Many popular websites are developed using Vue in their frontend development because of its imperative features.

This framework was created by Evan You and still it is maintained by his private team members. Vue is of course an open-source framework which is based on MVVM concept (Model-view view-Model) and used extensively in building sublime user-interfaces and also considered a prime choice for developing single-page heavy applications.

Released in February 2014, Vue JS has gained 64,828 stars on Github, making it very popular in recent times.

Evan used Angular JS on many operations while working for Google and integrated many features in Vue to cover the flaws of Angular.

“I figured, what if I could just extract the part that I really liked about Angular and build something really lightweight." - Evan You

#vuejs #vue #vue-with-laravel #vue-top-story #vue-3 #build-vue-frontend #vue-in-laravel #vue.js

Ethan Hughes

Ethan Hughes

1578913982

A Vue Autocomplete Component That Abbreviations

Abbreviation-Autocomplete

A Vue Autocomplete component that autocompletes abbreviations/acronyms by description rather than the abbreviation text.

Props

data

The autocomplete options

The options are an array of objects in the form

{
  a: "Abbreviation or Acronym",
  d: "Definition or Description"
}

e.g.

[
  {
    a: "ATL",
    d: "Hartsfield–Jackson Atlanta International Airport"
  },
  {
    a: "LAX",
    d: "Los Angeles International Airport"
  }
]

limit(Optional)

The autocomplete results limit
Infinity by default

min-input-length(Optional)

The minimum number of characters typed before autocomplete results are displayed
1 by default

JS
const autocomplete = new Vue({
  el: '#app',
  data: {
    abbreviations: [
      {
        a: 'AF',
        d: 'Afghanistan'
      },
      {
        a: 'AL',
        d: 'Albania'
      },
      {
        a: 'DZ',
        d: 'Algeria'
      },
      {
        a: 'AS',
        d: 'American Samoa'
      },
      {
        a: 'AD',
        d: 'Andorra'
      },
      {
        a: 'AO',
        d: 'Angola'
      },
      {
        a: 'AI',
        d: 'Anguilla'
      },
      {
        a: 'AQ',
        d: 'Antarctica'
      },
      {
        a: 'AG',
        d: 'Antigua and Barbuda'
      },
      {
        a: 'AR',
        d: 'Argentina'
      },
      {
        a: 'AM',
        d: 'Armenia'
      },
      {
        a: 'AW',
        d: 'Aruba'
      },
      {
        a: 'AU',
        d: 'Australia'
      },
      {
        a: 'AT',
        d: 'Austria'
      },
      {
        a: 'AZ',
        d: 'Azerbaijan'
      }
    ]
  }
})

Template
<abbreviation-autocomplete :data="abbreviations" :limit="10" :min-input-length="2"></abbreviation-autocomplete>

Demo

Download

#vue #vue-autocomplete #autocomplete-abbreviations #vue-js

Sofia Kelly

Sofia Kelly

1578061020

10 Best Vue Icon Component For Your Vue.js App

Icons are the vital element of the user interface of the product enabling successful and effective interaction with it. In this article, I will collect 10 Vue icon component to bring more interactivity, better UI design to your Vue application.

1. Animated SweetAlert Icons for Vue

A clean and simple Vue wrapper for SweetAlert’s fantastic status icons. This wrapper is intended for users who are interested in just the icons. For the standard SweetAlert modal with all of its bells and whistles, you should probably use Vue-SweetAlert 2

Animated SweetAlert Icons for Vue

Demo: https://vue-sweetalert-icons.netlify.com/

Download: https://github.com/JorgenVatle/vue-sweetalert-icons/archive/master.zip

2. vue-svg-transition

Create 2-state, SVG-powered animated icons.

vue-svg-transition

Demo: https://codesandbox.io/s/6v20q76xwr

Download: https://github.com/kai-oswald/vue-svg-transition/archive/master.zip

3. Vue-Awesome

Awesome SVG icon component for Vue.js, with built-in Font Awesome icons.

Vue-Awesome

Demo: https://justineo.github.io/vue-awesome/demo/

Download: https://github.com/Justineo/vue-awesome/archive/master.zip

4. vue-transitioning-result-icon

Transitioning Result Icon for Vue.js

A scalable result icon (SVG) that transitions the state change, that is the SVG shape change is transitioned as well as the color. Demonstration can be found here.

A transitioning (color and SVG) result icon (error or success) for Vue.

vue-transitioning-result-icon

Demo: https://transitioning-result-icon.dexmo-hq.com/

Download: https://github.com/dexmo007/vue-transitioning-result-icon/archive/master.zip

5. vue-zondicons

Easily add Zondicon icons to your vue web project.

vue-zondicons

Demo: http://www.zondicons.com/icons.html

Download: https://github.com/TerryMooreII/vue-zondicons/archive/master.zip

6. vicon

Vicon is an simple iconfont componenet for vue.

iconfont
iconfont is a Vector Icon Management & Communication Platform made by Alimama MUX.

vicon

Download: https://github.com/Lt0/vicon/archive/master.zip

7. vue-svgicon

A tool to create svg icon components. (vue 2.x)

vue-svgicon

Demo: https://mmf-fe.github.io/vue-svgicon/v3/

Download: https://github.com/MMF-FE/vue-svgicon/archive/master.zip

8. vue-material-design-icons

This library is a collection of Vue single-file components to render Material Design Icons, sourced from the MaterialDesign project. It also includes some CSS that helps make the scaling of the icons a little easier.

vue-material-design-icons

Demo: https://gitlab.com/robcresswell/vue-material-design-icons

Download: https://gitlab.com/robcresswell/vue-material-design-icons/tree/master

9. vue-ionicons

Vue Icon Set Components from Ionic Team

Design Icons, sourced from the Ionicons project.

vue-ionicons

Demo: https://mazipan.github.io/vue-ionicons/

Download: https://github.com/mazipan/vue-ionicons/archive/master.zip

10. vue-ico

Dead easy, Google Material Icons for Vue.

This package’s aim is to get icons into your Vue.js project as quick as possible, at the cost of all the bells and whistles.

vue-ico

Demo: https://material.io/resources/icons/?style=baseline

Download: https://github.com/paulcollett/vue-ico/archive/master.zip

I hope you like them!

#vue #vue-icon #icon-component #vue-js #vue-app