Titanium JIRA Archive
Alloy (ALOY)

[ALOY-607] Enable basic ListView, ListSection, and ListItem support in markup

GitHub Issuen/a
TypeSub-task
PriorityHigh
StatusResolved
ResolutionFixed
Resolution Date2013-04-05T16:14:07.000+0000
Affected Version/sn/a
Fix Version/sAlloy 1.2.0, 2013 Sprint 07
ComponentsXML
Labelsn/a
ReporterTony Lukasavage
AssigneeUnknown
Created2013-04-05T16:09:00.000+0000
Updated2018-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>

Comments

No comments

JSON Source