[ALOY-607] Enable basic ListView, ListSection, and ListItem support in markup
GitHub Issue | n/a |
---|---|
Type | Sub-task |
Priority | High |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2013-04-05T16:14:07.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.2.0, 2013 Sprint 07 |
Components | XML |
Labels | n/a |
Reporter | Tony Lukasavage |
Assignee | Unknown |
Created | 2013-04-05T16:09:00.000+0000 |
Updated | 2018-03-07T22:25:57.000+0000 |
Description
Enable usage of this kind of syntax:
<Alloy>
<Tab title="basic">
<Window title="basic">
<!--
"itemclick" will handle all click events on any ListItems
in the ListView. You can use the "sectionIndex" and
"itemIndex" of the event object to determine exactly
which ListItem is clicked. This allows you to define a
single event handler to process all ListItem clicks.
Bear in mind that event handlers can NOT be added
directly to ListItems.
-->
<ListView id="list" onItemclick="onItemClick">
<ListSection>
<ListItem title="row 1"/>
<ListItem title="row 2"/>
<ListItem title="row 3"/>
<ListItem title="row 4"/>
<ListItem title="row 5"/>
<ListItem title="row 6"/>
<ListItem title="row 7"/>
<ListItem title="row 8"/>
<ListItem title="row 9"/>
<ListItem title="row 10"/>
</ListSection>
</ListView>
</Window>
</Tab>
</Alloy>
No comments