javascript - Setting button to be Visible and invisible depending on current view -
i have hierarchy this.
<alloy> <window> <view id="titlebar"> <button id="home" title="home" /> <label id="title" /> </view> <view id="changing_view"> /**** view changes everytime ******/ </view> </window> </alloy> i have 1 window through out application , create controllers , replace view in window controller's view.
my titlebar view nowadays time , has home button. want hide home button in home view , in rest of views, want display it.
how check if current view home view or not?
you can hide button in controller using id. , later can show it, other view.
javascript xml titanium appcelerator appcelerator-mobile
No comments:
Post a Comment