Titanium Community Questions & Answer Archive

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

Does iPad Popover support titleControl property?

I want to set an iPad popover's titleControl to a tabbedBar. Is this possible? The docs don't indicate a popover supports the titleControl property, so I don't think this is possible, but is there a way to achieve this another way? To clarify, I'm trying to add a tabbedBar control to the middle of the title bar of a popover.

— asked July 30th 2010 by Slim McKinsley
  • popover
  • titlecontrol
0 Comments

1 Answer

  • Hi

    it's a shame you cant do titleControl on popovers

    heres a bit of a workaround, though it may not suit

    var tabbed = Titanium.UI.createTabbedBar({
       labels:['Segment 1', 'Segment 2'],
       style:Titanium.UI.iPhone.SystemButtonStyle.BAR,
       width:200,
       index:0
    });
    
    var popover = Ti.UI.iPad.createPopover({ 
       width:200, 
       height:350,
       rightNavButton:tabbed
    });
    

    [edit]
    just looking at the source for popovers, and there is no titleControl support. however looking at it and comparing to the window, i dont think it will be difficult to add. perhaps creating a ticket is the way to go?

    — answered July 31st 2010 by Richie Mortimer
    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.