-
2 Feb 2011 5:10 AM #1
Create hidden search field on to of a list
Create hidden search field on to of a list
I am try to reproduce the interface similar to ipod under iphone, with a hidden search field on top of a list, with drag down to have it appear.
I was able to add a search field on top of a list with vertical scroll.
But wasn't able to hide it by default.
Any idea?
Thanks in advance
Code:var tab = { scroll: 'vertical', title: 'title', id: 'id', cls: 'css', iconCls: 'icon', items: [{ xtype: 'toolbar', dock:'top', ui:'light', items: [ { xtype: 'searchfield', placeHolder: 'Search', name: 'searchfield' }, {xtype: 'spacer'}, { cls: 'c-searchfield-buton', text: 'Advanced', handler: function() { searchPicker.show()} } ] }, {store:store}] } };
-
12 Jan 2013 12:01 PM #2
http://docs.sencha.com/touch/2-0/#!/...croll.Scroller
Configure the scrollable property on your list and define an 'initialOffset.' For example (this is taken from my list config):
Code:scrollable : { initialOffset: { x: 0, y: 45 } },
Similar Threads
-
Search field on top of a List
By mikeyroy in forum Sencha Touch 1.x: DiscussionReplies: 4Last Post: 7 Oct 2012, 1:18 PM -
[FIXED-502] List created by Select field is never destroyed if hidden on mask tap
By elishnevsky in forum Sencha Touch 1.x: BugsReplies: 3Last Post: 25 Aug 2012, 2:46 AM -
Hidden field in FormPanel renders empty <div class="x-field-hidden">
By jessehattabaugh in forum Sencha Touch 1.x: DiscussionReplies: 2Last Post: 30 Jul 2010, 1:48 PM -
help..how to create search field
By rex0098 in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 20 Dec 2009, 7:37 PM -
How to create a hidden input field
By gizzmo in forum Ext 1.x: Help & DiscussionReplies: 18Last Post: 12 May 2008, 10:24 PM


Reply With Quote