Results 1 to 3 of 3

Thread: [4.2.0 beta 2] Adding tools to Panel header as array

    You found a bug! We've classified it as EXTJS-8259 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Mar 2011
    Location
    Betelgeuse VII
    Posts
    96
    Vote Rating
    13
      0  

    Default [4.2.0 beta 2] Adding tools to Panel header as array

    REQUIRED INFORMATION

    Ext version tested:

    • Ext 4.2.0 Beta 2
    Browser versions tested against:
    • IE9
    • FF18
    • Chrome 24.0.1312.52 m
    DOCTYPE tested against:
    • <!DOCTYPE html>
    Description:
    • Adding an array of tools does not show the tools in the panel header. Adding them individually works as expected.
    Steps to reproduce the problem:
    • Add an array of tools to the panel header
    The result that was expected:
    • Tools would be shown in panel header as listed
    The result that occurs instead:

    • The close tool is shown instead of the tools listed in the tools array

    Test Case:
    Code:
        
    Ext.onReady(function() {   
        var panel = Ext.create('Ext.panel.Panel', {
            title: 'Hello',
            width: 400,
            html: '<p>World!</p>',
            renderTo: Ext.getBody()
        });
        
        var tool1 = Ext.create('Ext.panel.Tool', { type: 'up' });
        var tool2 = Ext.create('Ext.panel.Tool', { type: 'refresh' });
    
    
        panel.down('header').addTool([tool1, tool2]);
    });
    HELPFUL INFORMATION

    Debugging already done:
    • none
    Operating System:
    • Windows 7

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,411
    Vote Rating
    1290
      0  

    Default

    I'm going to open this as a feature request as the documentation does clearly say that it accepts an object so I wouldn't expect an array to work.

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2011
    Location
    Betelgeuse VII
    Posts
    96
    Vote Rating
    13
      0  

    Default

    Thanks for the reply. If that functionality is deprecated that's fine. In the source I see the parameters as:

    Code:
    @param {Object[]/Ext.panel.Tool[]}

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
  •