Press "Enter" to skip to content

Simple Multi-select Component With Items Displayed In A Table | vue-gridmultiselect

Vue GridMultiselect is a simple multi-select component of the Vue framework with elements displayed in a table-like user interface. An alternative to the dropdown selection components.

vue form multiselect, vue multiselect select all, vue multiselect github, vue multiselect dropdown example, vue multi select required

Features and characteristics

  • No dependencies
  • Searching
  • Grouping
  • Split View
  • Labeling (title, no data messages, multiple keys as a label source…)
  • Disabling Items
  • Row Details
  • Menu Positioning
  • Easily configurable
  • Custom slots
  • V-model support
  • Vuex support

jQuery Plugin for a Filterable Multi Selection Bootstrap Dropdown

How to make use of it:

Install and download:

# NPM
$ npm install vue-gridmultiselect --save

1. Import the Vue & Vue GridMultiselect into the application.

import GridMultiSelect from 'vue-gridmultiselect';
import 'vue-gridmultiselect/dist/vue-gridmultiselect.css';

2. Register the component and select the options as follows:

export default {
  name: "example",
  components: { GridMultiSelect },
  data() {
    return {
    selectedItems: null,
      items: [
        { id: 1, name: "San Francisco" },
        { id: 2, name: "Las Vegas" },
        { id: 3, name: "Washington" },
        { id: 4, name: "Munich" },
        { id: 5, name: "Berlin" },
        { id: 6, name: "Rome" }
      ]
    };
  }
};

3. Create a GridMultiSelect component in your template.

<GridMultiSelect 
  :items="items" 
  item-key="id" 
  item-label="name" 
  v-model="selectedItems" 
/>

4. Default props.

title: {
  type: String,
  default: "Grid Multiselect"
},
itemLabel: {
  value: [String, Array],
  required: true
},
itemKey: {
  type: String,
  required: true
},
items: {
  type: Array,
  default: () => []
},
value: {
  type: Array,
  default: () => []
},
searchable: {
  type: Boolean,
  default: true
},
emptyMessage: {
  type: String,
  default: "No Data"
},
groupBy: {
  type: String
},
itemDetails: {
  type: String
}

Searchable & Groupable Multi Select Component, Vue GridMultiselect Plugin/Github


See Demo And Download

Official Website(ProticM): Click Here

This superior jQuery/javascript plugin is developed by ProticM. For extra advanced usage, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.