I want to add a button to the right hand side of my gridpanel header but can't find anyway of doing so.
I don't want to add a toolbar since it's only 1 button I want to add.
Check out the panel's tools config. Simply add it to grid's config:
Ext.create('Ext.grid.Panel', {
// ...
tools:[
{
type:'help',
tooltip: 'Get Help',
handler: function(event, toolEl, panel){
// show help here
}
}],
// ...
});
Here is demo.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With