DatePicker -> disableDates only when a model is loaded
I've the following use case where Date Picker is disabled when a vehicle is not selected.
But then later on, when a vehicle is selected, it needs to supply array of dates on disableDates
The problem is since we disable it based on vehicle is not selected yet,
$this->vehicle
is a null and therefore does not return an array of booked dates.
Is there a way where I can disabledDates
to DatePicker
via the following SelectField where choosing the vehicle happens:
Thanks
Pram.dev1 Reply
Why not populate the list once it has been updated?