Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Buttons in header ExtJs

I want to add some buttons in 'window' header, instead of 'X'. Draggable property must be saved! It should look like this: enter image description here

like image 203
Oleg Avatar asked Dec 04 '22 14:12

Oleg


1 Answers

You can specify the tools(Ext.Panel.Tool) config for the window!

tools:[{
    type:'refresh',
    tooltip: 'Refresh form Data',
    handler: function(event, toolEl, panel){
        // refresh logic
    }
},
{
    type:'help',
    tooltip: 'Get Help',
    handler: function(event, toolEl, panel){
        // show help here
    }
}]

There are 25 predefined buttons but you can customize your own.

like image 85
A1rPun Avatar answered Jan 28 '23 12:01

A1rPun