1.0.19 • Published 2 years ago
option-collector v1.0.19
Option Collector
A vue dropdown component that handles objects in a convenient way.
Install
npm install --save option-collector
Usage
<template>
<dropdown :options="options" :selected.sync="selected">
<p>Selected Object has optionKey (id by default) value: {{ selected }}</p>
</template>
<script>
import dropdown from 'option-collector';
export default {
components: {
dropdown
},
data() {
return {
selected: null,
options: [
{
id: 1,
name: "A",
tag: "some tag",
},
{
id: 2,
name: "C",
tag: "some tag",
},
{
id: 3,
name: "B",
tag: "other tag",
},
]
}
}
}
</script>
Options
Look at src/Test.vue or the props on OptionCollector.vue
Dev Testing
npm run serve
Compiles and minifies for npm
npm run build
Lints and fixes files
npm run lint
1.0.19
2 years ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
0.1.0
2 years ago