├── .gitignore ├── package.json ├── LICENSE ├── readme.md └── Dropdown.vue /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-dropdowns", 3 | "version": "1.1.2", 4 | "description": "An easier way to display select boxes using objects", 5 | "main": "Dropdown.vue", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | 10 | "repository": { 11 | "type": "git", 12 | "url": "git+https://github.com/mikerodham/vue-dropdowns.git" 13 | }, 14 | "keywords": [ 15 | "vue", 16 | "dropdown", 17 | "vue-dropdown", 18 | "vue-dropdowns" 19 | ], 20 | "author": "Mike Rodham", 21 | "license": "MIT" 22 | } 23 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Mike Rodham 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # vue-dropdowns 2 | A better way to handle `v-for` on objects. 3 | 4 | No special dependencies, no jquery, no bootstrap, just VueJS and CSS goodness. 5 | 6 | # Demo 7 | - [Demo - https://mikerodham.github.io/vue-dropdowns/](https://mikerodham.github.io/vue-dropdowns/) 8 | 9 | # Requirements 10 | 11 | - [Vue.js](https://github.com/vuejs/vue) `^2.0.0` 12 | 13 | # Installation 14 | 15 | ```shell 16 | $ npm install vue-dropdowns 17 | // OR 18 | $ yarn add vue-dropdowns 19 | ``` 20 | 21 | # Usage 22 | 23 | ```html 24 | 30 | 31 | 32 | 56 | 57 | 72 | 73 | ``` 74 | 75 | # Default values of props 76 | | Property | Type | Default value | 77 | | -------------------- |:-------------:| ---------------:| 78 | | closeOnOutsideClick | boolean | true | 79 | | placeholder | string | 'Select an Item' | 80 | 81 | # License 82 | 83 | [The MIT License](http://opensource.org/licenses/MIT) 84 | -------------------------------------------------------------------------------- /Dropdown.vue: -------------------------------------------------------------------------------- 1 | 22 | 23 | 84 | 85 | 184 | --------------------------------------------------------------------------------