1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    12
    Vote Rating
    0
    lsstacc is on a distinguished road

      0  

    Default 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}]
    }
    
    };

  2. #2
    Sencha User
    Join Date
    Jul 2012
    Posts
    15
    Vote Rating
    0
    hawkinbj is on a distinguished road

      0  

    Default


    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

  1. Search field on top of a List
    By mikeyroy in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 7 Oct 2012, 1:18 PM
  2. Replies: 3
    Last Post: 25 Aug 2012, 2:46 AM
  3. Hidden field in FormPanel renders empty <div class="x-field-hidden">
    By jessehattabaugh in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 30 Jul 2010, 1:48 PM
  4. help..how to create search field
    By rex0098 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 20 Dec 2009, 7:37 PM
  5. How to create a hidden input field
    By gizzmo in forum Ext 1.x: Help & Discussion
    Replies: 18
    Last Post: 12 May 2008, 10:24 PM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar