Topic: Date picker - how can I change min and max programatically
softcon premium asked 3 years ago
*Expected behavior*Date picker min and max values. Should be able to change the min and max options later, not just at init
*Actual behavior*Cannot change min and max options later - error message "...set is not a function"
Resources (screenshots, code snippets etc.)https://mdbootstrap.com/snippets/standard/softcon/3375766
Dawid Wajszczuk staff answered 3 years ago
Hi,
The only available option is to reinitialize the datepicker with new options. Here is the snippet with example https://mdbootstrap.com/snippets/standard/d-wajszczuk/3381631#js-tab-view.
Keep coding,
Dawid
softcon premium answered 3 years ago
No answer yet. I've figured out that I can delete the old calendar and rebuild the new one with the new options but it's not ideal. I would much rather just update the options of the original calendar.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Premium
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 3.9.0
- Device: pc
- Browser: chrome
- OS: window
- Provided sample code: No
- Provided link: Yes