ecommerce1986 / mobiscroll

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

Feature Req: BeforeSetDate #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Have an event that fires just before a date is actually selected and stored 
into the associated input.  onBeforeSelect or some-such similar naming.

This allows for multiple pickers to be "tied" together via some javascript glue 
to ensure that, for example, a date-range is valid before the picker loses 
focus (and/or code can be provided to automatically adjust another picker in 
relation to this picker's input).

onClose isn't quite sufficient because I need to know the value of the picker 
before and after, not just the newly selected date.

As a workaround, I store a temporary copy of the date beforeShow and then use 
onClose in combination with my temporary copy to accomplish my needs.

Original issue reported on code.google.com by seele...@gmail.com on 21 Sep 2011 at 7:51

GoogleCodeExporter commented 8 years ago
That is to say, I'm using onSelect not onClose with my temporary solution.

Original comment by seele...@gmail.com on 21 Sep 2011 at 8:15

GoogleCodeExporter commented 8 years ago

Original comment by diosla...@gmail.com on 22 Sep 2011 at 7:58

GoogleCodeExporter commented 8 years ago

Original comment by kovlex.l...@gmail.com on 9 May 2012 at 10:07