Steps to Reproduce
I just tried to add tabGroup inside SplitWindow but it doesnt seems to be working, just because TabGroup cannot be child of master/detailed window.
Actual Result
I see blank view
Expected Result
Expect TabGroup to be child of master/detailed window of splitView.
Test Case
<Alloy>
<!-- iPad -->
<SplitWindow id="index" formFactor="tablet" platform="ios">
<Window>
<TabGroup>
<!-- Explicit Window declaration -->
<Tab id="tab1">
<Window id="win1">
<Label>Label 1</Label>
<Label>Label 2</Label>
<Label platform="ios">Label 3</Label>
<Label>Label 4</Label>
<Label>Label 5</Label>
</Window>
</Tab>
</TabGroup>
</Window>
<Window>
<NavigationGroup id="navgroup">
<Require src="detail" id="detail"/>
</NavigationGroup>
</Window>
</SplitWindow>
</Alloy>
Hello, Can you please provide a simple test case that shows this error so that I may more quickly determine if this is indeed a bug? Then I would be glad to pass it along to engineering. Thanks, Carter
Please use this snippet
ALSO PLEASE REFER TO THIS ISSUE : http://developer.appcelerator.com/question/148562/alloy---add-tabgroup-inside-splitwindow#answer-257203
Thank you Andrey, I reopened the issue and moved to Ti-Mob.
@Carter: from now on, Alloy-specific issues should be moved to the ALOY project, not TIMOB. Thanks.
Got it, sorry for the mixup.
Basic syntax will look like this:
<Alloy> <SplitWindow> <TabGroup id="master"> <Tab title="tab 1"> <Window title="tab 1"/> </Tab> <TabGroup> <Window id="detail"> </SplitWindow> </Alloy>Tried running the app using the following code.
App runs with no error but tabgroup is not added to the window.<Alloy> <SplitWindow> <Window> <TabGroup id="master"> <Tab title="tab 1"> <Window title="tab 1"/> </Tab> <TabGroup> </Window> <Window id="detail"> <Window> </SplitWindow> </Alloy>[~pmishra] TabGroup is a top-level view, it should not be nested inside of a Window. Also, your XML was invalid since you didn't close your TabGroup or Window tags.
<Alloy> <SplitWindow> <TabGroup id="master"> <Tab title="tab 1"> <Window title="tab 1"/> </Tab> </TabGroup> <Window id="detail"/> </SplitWindow> </Alloy>Verified as fixed and working as expected with: Alloy 1.1.2 GA and 1.1.3-alpha TiSDK 3.1.0 GA and 3.1.1.v20130513131554 CLI 3.1.0 Sample code:
Closing.<Alloy> <SplitWindow> <TabGroup id="master"> <Tab title="tab 1"> <Window title="tab 1"> <Label>This is Tab1/Window 1</Label> </Window> </Tab> <Tab title="tab 2"> <Window title="tab 2"> <View top="5" backgroundColor="red" width="30" height="30"></View> </Window> </Tab> <Tab title="tab 3"> <Window title="tab 3"/> </Tab> </TabGroup> <Window id="detail"> <View top='20' width="200" height="200" backgroundColor="blue"></View> </Window> </SplitWindow> </Alloy>