DateTimePicker - Disable date

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
sangnandar
User
Posts: 980

DateTimePicker - Disable date

Post by sangnandar »

How to disable dates on DateTimePicker?
I want to exclude dates:

  • weekend
  • holiday (reads mysql holiday_table)
  • dates after today
    Change the look (color, etc) and user can't select those dates on DateTimePicker.

I see Options in advanced setting for this extension. What is that for?

Thanks.


arbei
User
Posts: 9356

Post by arbei »

Visit the URL of "Developer Website" in [Notes] of the DateTimePicker, visit [docs] -> [Options.md], and there are option "disabledDates" and "daysOfWeekDisabled" to control which date is required to disable.

Then add the options in JSON format to [Advanced] -> [Project] -> [Options].


Post Reply