1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    4
    Vote Rating
    0
    camores is on a distinguished road

      0  

    Default Answered: Porlet tools questions

    Answered: Porlet tools questions


    Hi. Is it possible to add a custom tool in the portlet toolbar.
    Some of the tools include; refresh, gear, help, find, collapse, etc.
    I was just wonder if we could add a control, like, a dropdownlist.
    Or is is possible to show a dropdownlist with a button when I click one of those tools?

    Any help is greatly appreciated.

    Thanks.

  2. Yes. As a simple example:

    Code:
    Ext.create('Ext.window.Window', {
      height: 400,
      width: 400,
      tools:[{
        xtype: 'combobox'
      },{
        type:'refresh',
        tooltip: 'Refresh form Data',
        // hidden:true,
        handler: function(event, toolEl, panel){
            // refresh logic
        }
      },{
        type:'help',
        tooltip: 'Get Help',
        handler: function(event, toolEl, panel){
            // show help here
        }
      }]
    }).show();

  3. #2
    Sencha - Community Support Team friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
    friend has a spectacular aura about friend has a spectacular aura about

      0  

    Default


    Yes. As a simple example:

    Code:
    Ext.create('Ext.window.Window', {
      height: 400,
      width: 400,
      tools:[{
        xtype: 'combobox'
      },{
        type:'refresh',
        tooltip: 'Refresh form Data',
        // hidden:true,
        handler: function(event, toolEl, panel){
            // refresh logic
        }
      },{
        type:'help',
        tooltip: 'Get Help',
        handler: function(event, toolEl, panel){
            // show help here
        }
      }]
    }).show();

  4. #3
    Sencha User
    Join Date
    Aug 2012
    Posts
    4
    Vote Rating
    0
    camores is on a distinguished road

      0  

    Default


    I just missed the "xtype" config that is why it is not showing a combobox.
    Thanks for the help.

Thread Participants: 1

Tags for this Thread