[ALOY-450] Accept multiple root-level emelents to index.xml view based on platform
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | Medium |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2013-01-04T08:49:55.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | XML |
| Labels | alloy |
| Reporter | Juan Ignacio Donoso |
| Assignee | Tony Lukasavage |
| Created | 2013-01-04T06:59:53.000+0000 |
| Updated | 2014-01-28T23:55:19.000+0000 |
Description
The compiler should accept adding multiple root-level elements to the index view when these elements have the platform property.
index.xml
<Alloy>
<NavigationGroup id="navgroup" platform="ios,mobileweb">
<Require src="home" />
</NavigationGroup>
<Require src="home" platform="android"/>
</Alloy>
home.xml
<Alloy>
<Window class="container">
<RightNavButton platform="ios">
<Button onClick="handleNewEvent">new</Button>
</RightNavButton>
<Label>This is the view</Label>
</Window>
</Alloy>
Alloy can already handle multiple top-level elements in index.xml, so long as those elements are top-level containers: * Ti.UI.Window * Ti.UI.TabGroup * Ti.UI.iPad.SplitWindow