vuejs-datepicker icon indicating copy to clipboard operation
vuejs-datepicker copied to clipboard

only allow future dates to be picked

Open jbiddulph opened this issue 3 years ago • 1 comments

Hi, I would like to set my date picker to only have future dates to be able to be selected, how can I go about doing this?

Thanks

jbiddulph avatar Oct 07 '21 08:10 jbiddulph

<datepicker :inline="true" :disabled-dates="disabledDates" /> <script> import Datepicker from "vuejs-datepicker"; export default { data() { return { disabledDates: { to: new Date() } }; } }; </script>

daxiang-dev avatar Oct 26 '21 02:10 daxiang-dev