Titanium JIRA Archive
Alloy (ALOY)

[ALOY-450] Accept multiple root-level emelents to index.xml view based on platform

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2013-01-04T08:49:55.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsXML
Labelsalloy
ReporterJuan Ignacio Donoso
AssigneeTony Lukasavage
Created2013-01-04T06:59:53.000+0000
Updated2014-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>

Comments

  1. Tony Lukasavage 2013-01-04

    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

JSON Source