Titanium Community Questions & Answer Archive

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

More than one right nav bar button?

Can you have more than one right nav button? I'm adding a thing thats going to have an add or import, and would like to have it in the navbar.

— asked November 1st 2010 by Josh Lewis
  • button
  • iphone
  • rightnavbar
0 Comments

2 Answers

  • Try this below code, I am not much sure about result

    var holder = Ti.UI.createView({
        width:150,
        height:42
    });
    
    var button1 = Ti.UI.createView({
        backgroundImage:'images/icons/icon1.png',
        width:40,
        height:42,
        right:10
    
    });
    holder.add(button1);
    
    var button2 = Ti.UI.createView({
        backgroundImage:'images/icons/icon2.png',
        width:40,
        height:42
        right:60
    
    });
    holder.add(button2);
    
    win1.rightNavButton = holder;
    
    — answered April 10th 2012 by Karthi Ponnusamy
    permalink
    0 Comments
  • Mine using Alloy

    <RightNavButton>
            <ButtonBar id="rightbuttonbar" onClick="editItem">
                <Labels>
                    <Label id="editLabel" title="Edit"/>
                    <Label title="Add"/>
                </Labels>
            </ButtonBar>
    </RightNavButton>
    
    — answered February 24th 2013 by Mason Zhang
    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.