1. #1
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Answers
    5
    Vote Rating
    3
    olouvignes is on a distinguished road

      0  

    Question Answered: dockedItems on 2.0

    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
    Vote Rating
    3
    olouvignes is on a distinguished road

      0  

    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 - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Answers
    29
    Vote Rating
    7
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    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
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


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

Thread Participants: 2

Tags for this Thread