Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (mvc)
Viewing all articles
Browse latest Browse all 25

TabGroup that have drill down nag on MVC

$
0
0

Application type: mobile Titanium SDK: 3.2.3 Platform & version: iOS 7 Device: iOS simulator Host Operating System: OSX 10.9.3

I'm building an app (see: http://i57.tinypic.com/a4wk2d.png) that has several tabs. In one of them i have rows that lead to details, one might call them drill down nav?

but when i click one of it, the tabGroup is nowhere (the setting for the layout, the tab buttons, etc) (see: http://i58.tinypic.com/2rrbas4.png)

// dashboard.xml

<Alloy> <Tab id="dashboard" title="dashboard"> <Window id="dashboardWin"> <TableView id="dashboardTable"> <TableViewRow id="firstRow" onClick="openSub"> <Label id="firstLabel"></Label> </TableViewRow> <TableViewRow id="secondRow"> <Label id="secondLabel"></Label> </TableViewRow> </TableView> </Window> </Tab> </Alloy>

// dashboard.js

function openSub(){ var subView = Alloy.createController('firstSub').getView(); $.dashboardWin.close(); }

===============================================================

// firstSub.xml

<Alloy> <Tab id="dashboard" title="dashboard"> <Window id="firstSubWin"> <TableView id="firstSubTable"> <TableViewRow id="firstSubRow"> <Label id="firstSubLabel"></Label> </TableViewRow> </TableView> </Window>
</Tab> </Alloy>

// firstSub.js

$.firstSubWin.open({ transition: Ti.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT });

==================================================================

Will you guys help me?


Viewing all articles
Browse latest Browse all 25

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>