dual-listbox-vue

1.0.2 • Public • Published

Dual Listbox

Dual Listbox for vue js

Dual listbox for vue js

DEMO

How to install

npm install dual-listbox-vue --save

How to use

import DualListBox from "dual-listbox-vue";
import "dual-listbox-vue/dist/dual-listbox.css";
export default {
    name: "App",
    components: {
        DualListBox
    },
    data: function () {
        return {
            source: [
                { name: "WHITE", code: "#FFFFFF" },
                { name: "SILVER", code: "#C0C0C0" },
                { name: "GRAY", code: "#808080" }
            ],
            destination: [
                { name: "BLACK", code: "#000000" },
                { name: "RED", code: "#FF0000" }
            ]
        };
    },
    methods: {
        onChangeList: function ({ source, destination }) {
            this.source = source;
            this.destination = destination;
        }
    }
};

In HTML template

<DualListBox
    :source="source" 
    :destination="destination"
    label="name"
    @onChangeList="onChangeList"
/>

Package Sidebar

Install

npm i dual-listbox-vue

Weekly Downloads

321

Version

1.0.2

License

MIT

Unpacked Size

153 kB

Total Files

14

Last publish

Collaborators

  • vigneshwar