Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Alloy, loading separate controllers for tabs in TabGroup

$
0
0

Hi, Given the (simplified) example alloy code:

<Alloy>
    <TabGroup id="tabGroup">
        <Tab id="tab1" title="First Tab" icon="KS_nav_views.png"></Tab>
        <Tab id="tab2" title="Second Tab" icon="KS_nav_views.png"></Tab>
        <Tab id="tab3" title="Third Tab" icon="KS_nav_views.png"></Tab>
    </TabGroup>
</Alloy>
Is there a way, either in the Alloy or in the example code's main .js file, to specify a separate Alloy controller to load for each tab?

Note that the seperate Alloy controllers appear something like this with multiple windows so I would need to specify a specific window in the controller to use for the tab window, however the entire controller would needed to be loaded obviously. An example of the secondary Alloy controller:

<!-- External alloy controller xml file for one of the tabs, -->
<Alloy>
    <Window id="mainWin" class="container" title="Main"></Window>
    <!-- These other windows will be opened as modal windows -->
    <Window id="modalWin" class="container" layout="vertical"></Window>
    <Window id="commonMoleculesWin"></Window>
</Alloy>

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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