clockpicker icon indicating copy to clipboard operation
clockpicker copied to clipboard

Setting minutes increment?

Open donluz opened this issue 10 years ago • 6 comments

Hello. Is there any way to set / restrict the minutes to a certain increment? For example, to set an increment of "5" would only allow the minutes selection to be 0, 5, 10, 15.... As it is now, one can click and drag around the clock face for the minutes and select any minute.

donluz avatar May 14 '15 20:05 donluz

+1

koendecock avatar May 22 '15 12:05 koendecock

+1

xzdead avatar Jun 04 '15 09:06 xzdead

The minute incremental is implemented in my fork :) https://github.com/JordyMoos/clockpicker

You can set the hourstep and minutestep for example:

$('#containert').clockpicker({
    hourstep: 2, // Only even hours
    minutestep: 5 // Per 5 minutes
});

JordyMoos avatar Jun 05 '15 19:06 JordyMoos

Thanks JordyMoos, works perfectly !

xzdead avatar Jun 09 '15 07:06 xzdead

+1

derwaldgeist avatar Dec 22 '15 10:12 derwaldgeist

+1

Xplouder avatar May 02 '16 00:05 Xplouder