Timepicker minTime maxTime (v2017)

Tips submitted by PHPMaker users
Post Reply
jaypolmx
User
Posts: 8

Timepicker minTime maxTime (v2017)

Post by jaypolmx »

Due to lack of documentation, maybe this will save you an hour of your precious coding time:
Let's say you want a timepicker that allows only every hour input (without seconds), starting from 7:00am and ending on 8:00pm. You want this in an 24hour format, so in Extensions -> TimePicker click on Advanced tab, then in your desired field you should enter the next parameters:

TimeFormat
H:i

Step
60

Options
{"minTime": "07:00","maxTime": "20:00"}

That's it, hope it helps.


Post Reply