Topic: Date picker - how can I change min and max programatically

softcon premium asked 2 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.)

Dawid Wajszczuk staff answered 2 years ago


The only available option is to reinitialize the datepicker with new options. Here is the snippet with example

Keep coding,

softcon premium answered 2 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.

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • 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