date-input-select-ccm
v1.0.4
Published
datepicker using select controls month-day-year
Downloads
5
Readme
date-input-select-ccm
installation
npm i date-input-select-ccm
how to use
import vueselectdate from 'date-input-select-ccm'
<vueselectdate
:startYear="1910" //optional
cssClass="form-select" //optional
defaultNameday="Dia" //optional
defaultNameMonth="Mes" //optional
defaultNameYear="Anio" //optional
:onChangeDay="getDay"
:onChangeMonth="getMonth"
:onChangeYear="getYear"
:customMonths="['Enero', 'Febrero','Marzo','Abril','Mayo','Junio''Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre']" //optional
:itemsDescOrder="true" //optional
/>
Catch de value
<script>
import vueselectdate from "@/components/dateInputSelect.vue";
export default {
components: {
vueselectdate,
},
methods: {
getDay(val) {
console.log(val);
},
getMonth(val) {
console.log(val);
},
getYear(val) {
console.log(val);
},
},
};
</script>
Enjoy it!!