Titanium JIRA Archive
Alloy (ALOY)

[ALOY-776] Allow a Require to provide multiple ListSections

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sAlloy 1.2.0
Fix Version/sn/a
Componentsn/a
Labelsalloy, listsection, listview
ReporterDaniel Sefton
AssigneeUnknown
Created2013-08-05T19:11:12.000+0000
Updated2018-03-07T22:25:46.000+0000

Description

Problem

If a contains multiple 's, only the first one is used.

To reproduce

*index.xml*
<Alloy>
  <ListView>
    <Require src="sections" />
  </ListView>
</Alloy>
*sections.xml*
<Alloy>
  <ListSection>
    <ListItem title="1A" />
    <ListItem title="1B" />
  </ListSection>
  <ListSection>
    <ListItem title="2A" />
    <ListItem title="2B" />
  </ListSection>
</Alloy>

Solution

Like when using a under we could pass *__listSection* and have the generated required controller add all of it's 's.

Comments

No comments

JSON Source