Skip to content

Instantly share code, notes, and snippets.

@bob-sims
Last active December 10, 2015 08:28
Show Gist options
  • Save bob-sims/4407292 to your computer and use it in GitHub Desktop.
Save bob-sims/4407292 to your computer and use it in GitHub Desktop.
Test case for Titanium Alloy error, cannot add View as child of TabGroup, although allowed through traditional Ti.UI API. Attempting to re-create Titans Community App UI.
<Alloy>
<TabGroup class="tabgroup" platform="ios">
<Tab id="streamTab">
<Window class="container">
<Label class="label" onClick="doClick">Hello, World</Label>
</Window>
</Tab>
<Tab id="groupsTab">
<Window class="container">
<Label class="label" onClick="doClick">Hello, World</Label>
</Window>
</Tab>
<Tab id="checkinTab">
<Window class="container">
<Label class="label" onClick="doClick">Hello, World</Label>
</Window>
</Tab>
<Tab id="eventsTab">
<Window class="container">
<Label class="label" onClick="doClick">Hello, World</Label>
</Window>
</Tab>
<Tab id="leadersTab">
<Window class="container">
<Label class="label" onClick="doClick">Hello, World</Label>
</Window>
</Tab>
<!-- Alloy doesn't like this View added as child of TabGroup -->
<View id="wrapper">
<Button id="checkinButton"/>
</View>
</TabGroup>
</Alloy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment