1.0.19 • Published 4 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-collectorUsage
<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 serveCompiles and minifies for npm
npm run buildLints and fixes files
npm run lint1.0.19
4 years ago
1.0.18
4 years ago
1.0.17
4 years ago
1.0.16
5 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
0.1.0
5 years ago