DatePicker: offer updating disabled dates and days through widgetVar
See original GitHub issueI’m using disabled dates based on a database query. I’ve chosen to only fetch the available dates based on the currently visible month. I was planning to use the viewChange
listener to fetch available dates again when the view changes. The listener is called, but the component does not (re)read the disabled dates list. I tried updating the component, but that will cause the popup to close.
I would be nice if we could use something similar to the LazyScheduleModel
and keep the number of requests limited.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
disabled dates not updating on view when we add through ...
I have used vue-hotel-date-picker its working fine. the issue is when using disabled dates props its disabled the dates first time when ...
Read more >DatePicker | PrimeFaces JavaScript API Docs
PrimeFaces DatePicker Widget. DatePicker is an input component used to select a date featuring display modes, paging, localization, ajax selection and more.
Read more >DatePicker (java.util.Date) - PrimeFaces Showcase
Date ). DatePicker is an input component to select a date. ... < p:outputLabel for = "disabledDD" value = "Disabled Date/Day:" />. <...
Read more >[OutSystems UI] Updated Date Picker
Pass the array of date which needs to be disabled; Defined weekends function in the JS snippet will take care of disabling the...
Read more >Date Range Picker — JavaScript Date & Time Picker Library
Originally created for reports at Improvely, the Date Range Picker can be attached ... for selecting dates, times, or predefined ranges like "Last...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Why not in your
viewChange
useoncomplete='javascript()
to update the DatePicker’s internal disabledDates array.That is what controls the disabled dates in the drawing of the component. Or you could try this in the oncomplete
That would reinitialize all the init values like disabledDates.
If you can figure it out i would create a new issue and PR.