Widget 2 Onoffswitch

Hi admin20,

The format is pickerWheel:scrollToIndex(column_index, position), using 1-index. So if that second form you pasted (pickerWheel:scrollToIndex(1,2)) does not work in your code, i can only think in a different way you write the configuration code for the picker wheel, because i just tested this in multiple ways against 1093 and it works.

If you look at the sample code for the Widgets on git (https://github.com/coronalabs/framework-widgets-sample), file tab3.lua, does your picker wheel initialization code looks different?

Thanks,

Alex

:scrollToIndex has appeared in latest build for pickerWheel. What is the format for this?

pickerWheel:scrollToIndex(2) fails as does pickerWheel:scrollToIndex(1,2) - we need to identify the column and index.

The old undocumented way timeWheel._view._columns[1]:scrollToIndex(5) also fails now.

Hi admin20,

The format is pickerWheel:scrollToIndex(column_index, position), using 1-index. So if that second form you pasted (pickerWheel:scrollToIndex(1,2)) does not work in your code, i can only think in a different way you write the configuration code for the picker wheel, because i just tested this in multiple ways against 1093 and it works.

If you look at the sample code for the Widgets on git (https://github.com/coronalabs/framework-widgets-sample), file tab3.lua, does your picker wheel initialization code looks different?

Thanks,

Alex