I'm using vuejs-datepicker to deal with the date field of the form, so far I have not been able to make the datepicker start with the date of the current day and also not be able to select the days before the date that is being starting
I'm taking this component link
<template>
<form>
<datepicker :bootstrap-styling="true"
class="form-control"
:open-date="openDate"
:format="customFormatter"
v-model="event_at">
</datepicker>
</form>
</template>
<sctipt>
import Datepicker from 'vuejs-datepicker';
import moment from "moment";
export default {
components: {
Datepicker,
},
data () {
return {
event_at: '',
openDate: new Date(),
},
method: {
customFormatter(date) {
return moment(date).format('D MMMM YYYY');
},
}
}
</script>
Also the input in the view remains of this color:
Any ideas? I occupy Vuejs 2