Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikemajesty/vue-dual-list
📖 Component - Dual list in VueJs and VueMaterial.
https://github.com/mikemajesty/vue-dual-list
dual-listbox duallist materialduallist vue vue-dual-list vuedualist vuejs vuematerial
Last synced: 2 months ago
JSON representation
📖 Component - Dual list in VueJs and VueMaterial.
- Host: GitHub
- URL: https://github.com/mikemajesty/vue-dual-list
- Owner: mikemajesty
- License: mit
- Created: 2017-03-15T00:11:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-30T16:26:53.000Z (almost 6 years ago)
- Last Synced: 2024-11-03T08:02:36.058Z (2 months ago)
- Topics: dual-listbox, duallist, materialduallist, vue, vue-dual-list, vuedualist, vuejs, vuematerial
- Language: Vue
- Homepage: https://vue-dual-list.herokuapp.com/
- Size: 467 KB
- Stars: 21
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vue Dual List - Dual List using Vuejs and VueMaterial
[![duallist.png](https://i.postimg.cc/W4Jj8tYy/duallist.png)](https://postimg.cc/DWFtyfTQ)## Try it yourself.
[click here](https://vue-dual-list.herokuapp.com/)# How to install
```JavaScript
npm install vue-dual-list --save
```# How to use
```JavaScript
var VueDualList = require('vue-dual-list');new Vue({
el: '#vueduallist',
name: 'vue-dual-list',
data: function() {
return {
options: {
label: 'Demo title',
inputOptions: { uppercase: true, isRequired: false },
buttonOption: { textLeft: 'Move All', textRight: 'Move All' },
resizeBox: "md",
items: [
{ 'id': '1', 'name': 'Alundra' },
{ 'id': '2', 'name': 'Jess' },
{ 'id': '3', 'name': 'Meia' },
{ 'id': '4', 'name': 'Melzas' },
{ 'id': '5', 'name': 'Septimus' },{ 'id': '6', 'name': 'Rudy Roughknight' },
{ 'id': '7', 'name': 'Jack Van Burace' },
{ 'id': '8', 'name': 'Hanpan' },
{ 'id': '9', 'name': 'Cecilia Adlehyde' },{ 'id': '10', 'name': 'Serge' },
{ 'id': '11', 'name': 'Kid' },
{ 'id': '12', 'name': 'Lynx' },
{ 'id': '13', 'name': 'Harle' },],
colorItems: '#1E90FF',
selectedItems: []
}
};
},
components: {
'VueDualList': VueDualList
}
});
```##### In your page use
```Html
```
##### Dual list options* **options: {label}:**(optional): Label that will be displayed in the directive input text.;
* **options.inputOptions: {uppercase}**(required): Indicates if the letters in input text it will be uppercase.;
* **options.inputOptions: {isRequired}**(required): Indicates if the letters in input text it will be required.;
* **options.buttonOption: {textLeft}**(optional): Left button text.;
* **options.buttonOption: {textRight}**(optional): Right button text.;
* **options.resizeBox:**(optional): Height of the items box. [{'xs': 150px},{'md': 225px},{'lg': 350px},{'xl': 500px}];
* **options.items:**(required): Items that will be on the list.;
* **options.colorItems:**(optional): Color of the items that will be on the list.;
* **options.selectedItems:**(optional): Items selected by the user.;#### change dual list
To execute your changes run the command ```npm run compile```#### Used versions
##### vue
version: `2.2.6`
##### vue-material
version: `^0.7.1`
### License
It is available under the MIT license.
[License](https://opensource.org/licenses/mit-license.php)