-
14 Aug 2012 11:51 PM #1
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.
-
Best Answer Posted by friend
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();
-
15 Aug 2012 4:50 AM #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();
-
15 Aug 2012 1:46 PM #3
I just missed the "xtype" config that is why it is not showing a combobox.

Thanks for the help.


Reply With Quote