[ALOY-440] Ti.UI.Picker has no collection binding
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-08-21T03:16:58.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.5.0 |
Components | Models, XML |
Labels | qe-manualtest |
Reporter | Tony Lukasavage |
Assignee | Tim Poulsen |
Created | 2012-12-20T17:21:38.000+0000 |
Updated | 2014-08-28T15:15:53.000+0000 |
Description
original discussion
http://developer.appcelerator.com/question/145992/databinding-on-pickerproblem
Collection binding is not implemented for Ti.UI.Picker as it is for Ti.UI.TableView and other generic Titaniums views (View, Window, ScrollView, etc...).solution
Support collection binding on Ti.UI.Picker just as it is on TableView. It will need special handling as the Ti.UI.Picker requires custom parsing for columns and rows. Something like this should be how it would work for devs:
<Alloy>
<Collection src="book" />
<Window class="container">
<Picker dataCollection="book">
<PickerRow title="{title}" />
</Picker>
</Window>
</Alloy>
Attachments
File | Date | Size |
---|---|---|
android_ActualResult_noSpinner.png | 2014-08-14T23:11:01.000+0000 | 40150 |
android_ActualResult_withSpinner_PickerRowBinding.png | 2014-08-14T23:11:01.000+0000 | 40143 |
android_ActualResult_withSpinner.png | 2014-08-14T23:11:01.000+0000 | 38795 |