Titanium Community Questions & Answer Archive

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

Search field, not search bar?

Hi,

I am trying to implement a search field on the top right of my IPad app. For some reason i cant define where the search bar will be located. Its possible? Can someone point me to some examples?

thanks in advance

— asked December 3rd 2010 by Daniel Ander
  • field
  • ipad
  • seach
0 Comments

2 Answers

  • Accepted Answer

    Hi Daniel

    You can find an example in KitchenSink > Controls > Search Bar. The script is here.

    Simply set the position, as you would on any control or view, using top, bottom, left, right, and the dimensions height and width. For example:

    var search = Titanium.UI.createSearchBar({
        barColor:'#000',
        showCancel:true,
        height:43,
        top:30,
        right:0,
        width:200
    });
    

    Hope this helps

    — answered December 3rd 2010 by Paul Dowsett
    permalink
    0 Comments
  • Thanks a lot Hal :)

    — answered December 6th 2010 by Daniel Ander
    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.