schedulerjs icon indicating copy to clipboard operation
schedulerjs copied to clipboard

Force selector to select only steps hours.

Open milacay opened this issue 6 years ago • 1 comments

I really like your plugin module. Thank you for this module. Currently, I have the steps for the interval of every 1/2 hr, example: 08:00, 08:30, 9:00, 9:30... so on. Is there a way to force the selector to select only those hours specified, 30 minutes interval? For example, user drags the mouse between 8:00 to 8:47, it will force to select from 8:00 to 9:00.

milacay avatar Mar 08 '18 21:03 milacay

Try setting snapTo: 30 in the options. It should force the selection to the nearest half hour.

magnusjt avatar Mar 15 '18 10:03 magnusjt