A Component For Vue.js To Select Double-sided Data

Vue Select Sides is a component of Vue.js to select two-sided data. Customers can choose one or more items and have them shipped from one side to the other. Values can be displayed grouped or ungrouped.

dual list box material design, dual listbox get selected value, dual list box javascript, jquery transfer dual listbox plugin example, jquery dual listbox

How to make use of it:

Install and download:

# Yarn
$ yarn add vue-select-sides
# NPM
$ npm install vue-select-sides --save

1. Import the sides of the selection vue as a component.

import vueSelectSides from "vue-select-sides";

2. Import a theme of your choice.

// modern theme
@import "/node_modules/vue-select-sides/styles/themes/soft.scss";
// or dark theme 
@import "/node_modules/vue-select-sides/styles/themes/dark.scss";
// or light theme
@import "/node_modules/vue-select-sides/styles/themes/light.scss";

3. Add selection sides to your template.

<!-- Grouped -->
<vue-select-sides
  type="grouped"
  v-model="selected"
  :list="list"
></vue-select-sides>
<!-- Mirror -->
<vue-select-sides
  type="mirror"
  v-model="selected"
  :list="list"
></vue-select-sides>

4. Register the component and select the Options menu for the dual list box.

export default {
  components: {
    vueSelectSides
  },
  data() {
    return {
      selected: {},
      list: [
        {
          value: "value1",
          label: "Vaule 1",
          children: [
            {
              value: "value-1-1",
              label: "Value 1.1",
              disabled: true
            },
            {
              value: "value-1-2",
              label: "Value 1.2"
            }
          ]
        },
        {
          value: "value2",
          label: "Vaule 2",
          children: [
            {
              value: "value-2-1",
              label: "Value 2.1"
            },
            {
              value: "value-2-2",
              label: "Value 2.2"
            }
          ]
        }
      ]
    };
  }
};

5. All possible props to configure the dual list box.

list: {
  required: true,
  type: [Array, Object]
},
type: {
  type: String,
  default: "grouped"
},
lang: {
  type: String,
  default: "en_US"
},
orderBy: {
  type: String,
  default: undefined
},
placeholderSearchLeft: {
  type: [String, Boolean],
  default: false
},
placeholderSearchRight: {
  type: [String, Boolean],
  default: false
},
sortSelectedUp: {
  type: Boolean,
  default: false
},
search: {
  type: Boolean,
  default: true
},
total: {
  type: Boolean,
  default: true
},
toggleAll: {
  type: Boolean,
  default: true
},
model: {
  type: [Object, Array],
  default: undefined
}

Searchable Sortable Dual List Box Component, Vue Select Sides Plugin/Github


See Demo And Download

Official Website(juliorosseti): Click Here

This superior jQuery/javascript plugin is developed by juliorosseti. For extra Advanced Usages, please go to the official website.

Related Posts

Input-Values-Using-Mouse-Drag

Create Side Sliders Input Values Using Mouse Drag | Pointer Lock

HTML Range Slider is a lightweight library to create side sliders to adjust values easily and precisely by making use of the Pointer Lock API. Side Slider…

simple-parallax-scrolling-js

Smooth and Lightweight Parallax Scroll Library in Pure Javascript

Lightweight and seamless parallax scrolling library implemented in pure javascript using hardware acceleration for additional performance. Main Features Extremely lightweight with no dependencies A few kilobytes of pure…

Convert-Form-Data-to-JSON

How to Convert Form Data to JSON with HTML Forms | FormsJS

FormsJS is a simple-to-use JavaScript library that covers type subject values to JSON in real time. The items containing the data category will be analyzed automatically. It…

editable-html-table-using-javascript

A Small jQuery Extension to Convert An Editable HTML Table

Editable Table is a small jQuery extension to convert an editable HTML table for fast data entry and validation. A small jQuery extension to convert a static…

jquery.youtube-background

Simple jQuery Plugin for Embedding YouTube Videos As Cover Background

jquery.youtube-background is a jQuery plugin built to facilitate YouTube embeds as cover wallpaper using the YouTube Embed API. There is another jQuery Youtube Video Background plugin that…

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…