Titanium Community Questions & Answer Archive

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

ButtonBar ?


Two days of coding and I am really creating an iPhone App :)

Question, is it possible to "disable" or "hide" a button within a button bar?

For exmaple bb1 is a buttonbar…


Regards, Joakim

— asked November 5th 2010 by Joakim Krassman
  • buttonbar

1 Answer

  • bb1.labels[0].enabled=false;

    but take good care when you create the labels
    from here: http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.ButtonBar-object

    labels : the array of labels for the button bar. each object should have the properties title, image, width and enabled.

    — answered November 6th 2010 by Dan Tamas
    1 Comment
    • This doesn't seem to work for me. I also cannot get the getter and setter to work. how do you first create your labels for the buttonBar?

      — commented June 25th 2013 by Cody McMahon
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.