Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only allow future dates to be picked #855

Open
jbiddulph opened this issue Oct 7, 2021 · 1 comment
Open

only allow future dates to be picked #855

jbiddulph opened this issue Oct 7, 2021 · 1 comment

Comments

@jbiddulph
Copy link

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

@daxiang-dev
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants