0.2.2 • Published 5 years ago
@reciprocity/day-selector v0.2.2
DaySelector
A component that lets you pick days of the week.
Installation
npm install @reciprocity/day-selectoror
yarn add @reciprocity/day-selectorUsage
This component is meant to be used as an ES module, so you can import it using the ES6 import syntax.
After importing you can just register it with Vue. Eg:
app.vue
<template>
<day-selector :value="[]" @input="onDaysSelected" />
</template>
<script>
import DaySelector from '@reciprocity/day-selector';
export default Vue.extend({
name: 'My App',
components: {
DaySelector
},
methods: {
onDaysSelected: days => {
console.log('new days selected', days);
}
}
};
</script>