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

Conditional Alloy TabGroup Tab

$
0
0

Is there any way to have conditional tabs in tabgroup, defined using Alloy (XML)? One of the tabs is language specific and should be hidden according to current language. The current XML is similar to

<Alloy>
    <TabGroup>
        <Tab title="L('tab_1')" icon="tab1.png">
            <Window title="L('tab_1')">
                <Require src="tab1" />
            </Window>
        </Tab>
 
        <Tab title="L('tab_2')" icon="tab2.png">
            <Window title="L('tab_2')">
                <Require src="tab2" />
            </Window>
        </Tab>
 
        <!-- Begin Swedish only -->
        <Tab title="L('tab_3')" icon="tab3.png">
            <Window title="L('tab_3')">
                <Require src="docs" />
            </Window>
        </Tab>
        <!-- End Swedish only -->
 
        <Tab title="L('tab_settings')" icon="settings.png">
            <Window title="L('tab_settings')">
                <Require src="settings" />
            </Window>
        </Tab>
    </TabGroup>
</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>