Picker Wheel missing method ?

Corona"s Picker Wheel seems to lack the ability of changing one column depending on the value of others.

For instance if you need to setup a picker date with 3 columns (month, day, year) showing February should update the days columns in order to display only 1 to 29 or 28, depending on the year.Same for April and so on.

This could be achieved by a listener but the only way to do that seems to check the values with a timer:performWithDelay, a non very efficient method.

Is there any other workaround, or future update for this ?

I just posted my first attempt at a workaround for this, but like you said, it’s not very efficient.

http://code.coronalabs.com/code/date-picker-wheel-widget

screenshot.gif?raw=true

It works nicely for choosing dates, but it could use some improving. I’m sure it could be made more generic, so you could initialize the table with a multi-dimensional array instead of the current hard-coded labels.

I just posted my first attempt at a workaround for this, but like you said, it’s not very efficient.

http://code.coronalabs.com/code/date-picker-wheel-widget

screenshot.gif?raw=true

It works nicely for choosing dates, but it could use some improving. I’m sure it could be made more generic, so you could initialize the table with a multi-dimensional array instead of the current hard-coded labels.