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
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
-
Thanks a lot Hal :)