Add help button to gridjane extjs header

I want to add a button to the right side of my gridpanel header, but cannot find it.

I do not want to add a toolbar, as this is only one button that I want to add.

+6
source share
1 answer

Check the configuration of the tools panel. Just add it to the grid configuration:

Ext.create('Ext.grid.Panel', { // ... tools:[ { type:'help', tooltip: 'Get Help', handler: function(event, toolEl, panel){ // show help here } }], // ... }); 

Here is a demo .

+13
source

Source: https://habr.com/ru/post/897299/


All Articles