jitendra873 / mobiscroll

Automatically exported from code.google.com/p/mobiscroll
0 stars 0 forks source link

stepMinute needed #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Not so much a problem as much as a feature request.

I'd like to be able to easily specify minutes that are displayed by default.  
For example, setting a "stepMinute" parameter to 15 will only show 15 minute 
increments in the dial.

I have modified the 1.0rc2 script (see attached) to do this for minutes (which 
is all I currently require), but I could also see this setting for any of the 
other fields.

Original issue reported on code.google.com by barh...@gmail.com on 11 Mar 2011 at 10:00

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by diosla...@gmail.com on 12 Mar 2011 at 10:51

GoogleCodeExporter commented 9 years ago
additional modification needed to the previously attached.  When using steps to 
skip minutes, the index for the minutes that are skipped do not exist, so the 
scroller always defaults to zero.  The attached sets the value equal to the 
closest one before.

So a step of 10 minutes would display 2:40 if the time is 2:48, for example.

Original comment by barh...@gmail.com on 16 Mar 2011 at 6:38

Attachments:

GoogleCodeExporter commented 9 years ago
Added in 1.0: stepHour, stepMinute, stepSecond options

Original comment by diosla...@gmail.com on 30 Jun 2011 at 7:11

GoogleCodeExporter commented 9 years ago

Original comment by diosla...@gmail.com on 28 Jul 2011 at 1:43