Results 1 to 2 of 2

Thread: can't add docked item to viewport

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    58
    Vote Rating
    1
      0  

    Default can't add docked item to viewport

    I wanted to add a docked item to my viewport, but nothing is happening. This used to work with ST1.

    PHP Code:
    Ext.define('trinit.view.Viewport', {
    extend'Ext.Container',
    xtype'my-viewport',
    config: {
        
    fullscreentrue,

        
    dockedItems: [{
            
    xtype'toolbar',
            
    dock'bottom',
            
    title'Hello',
            
    height50
        
    }],

        
    layout: {
            
    type'card',
            
    animation: {
                
    type'slide',
                
    direction'left'
            
    }
        },
        
        
    items: [{
            
    xtype'Login'
        
    },{
            
    xtype'New'
        
    }]
        
    }
    }); 
    My goal was to add more then one toolbar at the bottom. But the first one isn't even showing... Anyone any idea how to fix this problem?

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1381
      0  

    Default

    dockedItems is deprecated... all items, docked or not, should go in the items array and use the docked config on your docked items.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

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