Search code examples
titaniumtitanium-mobiletitanium-alloy

How to set title for the window of a tab in alloy titanium


In the view:

I have a view like that:

<Alloy>
<TabGroup id="tab1">
    <Tab id="findtab">
        <Window id="window1"></Window>
    </Tab>
    <Tab id="tab2">
        <Window id='window2'></Window>
    </Tab>
 </TabGroup>
</Alloy>

In the controller:

How to set the title for window1?


Solution

  • Use:

    $.window1.title="my title"