Results 1 to 4 of 4

Thread: dockedItems on 2.0

  1. #1
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Answers
    5

    Question Answered: dockedItems on 2.0

    What is the best replace for the 'dockedItems' property, it no longer exists on an Ext.Panel.
    Tried some 'tbar'-like property from Ext.Js4 with no luck.

    Code:
    config: {        
          dockedItems:[{
                xtype: 'toolbar',
                title: 'Register',
                ui: 'dark',
                items: [
                    {xtype:'button'}
                ]
        }]
    }

  2. Found a workaround :

    Code:
             config: {
    		items:[{
    			xtype: 'toolbar',
    			title: 'Register',
    			docked: 'top',
    			ui: 'dark',
    			items: [
    				{xtype:'button'}
    			]
    		}]
    	},
    Is it the right way ?

  3. #2
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Answers
    5

    Default

    Found a workaround :

    Code:
             config: {
    		items:[{
    			xtype: 'toolbar',
    			title: 'Register',
    			docked: 'top',
    			ui: 'dark',
    			items: [
    				{xtype:'button'}
    			]
    		}]
    	},
    Is it the right way ?

  4. #3
    Sencha User edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Answers
    29

    Default

    Yes
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  5. #4
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Answers
    17

    Default

    This is now the correct syntax (just note that docked will change to 'dock' in a later release)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •