How to call Date Disable function in <b-calendar> component from another function #6986
Shahzaib4321
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Everyone,
I am using component in my web application and I am looking to disable the all the dates which I received from database dynamically on @context change event. Below is the sample code. However, it it not disabling the dates. Please advise.
<b-calendar size="sm" v-model="value" label-no-date-selected="select date" label-help="custom label" :min="min" :max="max" required :date-disabled-fn="dateDisabled" locale="en" @context="onDatePickerContext" placeholder="Date"> <div class="d-flex" dir="ltr"> <b-button size="sm" id="reset_date" variant="outline-danger" @click="clearDate"> Clear Date </b-button> </div> </b-calendar>
Methods:
Beta Was this translation helpful? Give feedback.
All reactions