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

Call main windows view object from controller of partial

$
0
0

I have a partial called header

<Alloy>
    <RightNavButton plataform="ios">
        <View backgroundColor="grey">
            <Button width="120" onClick="doSelectSetting">Configurações</Button>
        </View>
    </RightNavButton>
    <Menu id="menu" platform="android">
        <MenuItem id="mnuSelectCondo" onClick="doSelectCondo" title="Trocar condomínio" showAsAction="Ti.Android.SHOW_AS_ACTION_NEVER" />
        <MenuItem id="mnuSelectSync" onClick="doSelectSync" title="Sincronizar dados" showAsAction="Ti.Android.SHOW_AS_ACTION_NEVER" />
        <MenuItem id="mnuLogout" onClick="doLogout" title="Logout" showAsAction="Ti.Android.SHOW_AS_ACTION_NEVER" />
    </Menu>
</Alloy>
So, when any of those events are called, a activity_loading must appears but this activity_loading isn't here at my partial. It is at the main window, so... what can I do?

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images