Titanium JIRA Archive
Alloy (ALOY)

[ALOY-240] Implement Ti.UI.Picker parser (PLAIN)

GitHub Issuen/a
TypeStory
PriorityMedium
StatusResolved
ResolutionFixed
Resolution Date2012-09-13T10:59:36.000+0000
Affected Version/sn/a
Fix Version/s2012 Sprint 19, Release 3.0.0
ComponentsXML
Labelsn/a
ReporterTony Lukasavage
AssigneeUnknown
Created2012-08-31T05:26:41.000+0000
Updated2018-03-07T22:25:49.000+0000

Description

description

Implement all versions of the Ti.UI.Picker. Original request for this functionality can be found here: https://groups.google.com/forum/?fromgroups=#!topic/appc-ti-alloy/OS3XZrpwp1Q

Proposed snippet

Single Column

<Picker>
    <PickerRow title="0"/>
    <PickerRow title="1"/>
    <PickerRow title="2"/>
    <PickerRow title="3"/>
</Picker>

Multi-Column

<Picker>
    <PickerColumn>
        <PickerRow title="0"/>
        <PickerRow title="1"/>
        <PickerRow title="2"/>
        <PickerRow title="3"/>
    </PickerColumn>
    <PickerColumn>
        <PickerRow title="0"/>
        <PickerRow title="1"/>
        <PickerRow title="2"/>
        <PickerRow title="3"/>
    </PickerColumn>
    <PickerColumn>
        <PickerRow title="0"/>
        <PickerRow title="1"/>
        <PickerRow title="2"/>
        <PickerRow title="3"/>
    </PickerColumn>
</Picker>

Notes

* Let's create shorthand names that the parser can identify to make it even easier? ** PickerColumn -> Column ** PickerRow -> Row
<Picker>
    <Column>
        <Row title="0"/>
        <Row title="1"/>
        <Row title="2"/>
        <Row title="3"/>
    </Column>
</Picker>

Comments

  1. Tony Lukasavage 2012-09-13

    Took a little longer due to finding and logging TIMOB-10895

JSON Source