Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Hide / Remove win.rightNavBar Button

Hi guys,

would be great if anyone could give me a hint :).

Afaik Buttons could be made invisible with button.hide(); But this only works if the button was added via win.add(button);

So the question is, how could I remove a button which is added like this:

    var save = Titanium.UI.createButton({
        systemButton:Titanium.UI.iPhone.SystemButton.SAVE
    });
    save.addEventListener('click', function()
    {
          //... do some magic here...
        save.hide(); //does not work
    });
    win.rightNavButton = save;

thank you!

— asked March 16th 2010 by Florian Bergmann
  • basic
  • button
  • navbar
  • ui
0 Comments

2 Answers

  • Accepted Answer

    set it to null.

    — answered March 16th 2010 by Jeff Haynie
    permalink
    0 Comments
  • too obvious… ;)
    thank you

    — answered March 16th 2010 by Florian Bergmann
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.