[英]Add help button to Extjs gridpanel header
I want to add a button to the right hand side of my gridpanel header but can't find anyway of doing so. 我想在我的gridpanel标题的右侧添加一个按钮,但无论如何都找不到。
I don't want to add a toolbar since it's only 1 button I want to add. 我不想添加工具栏,因为它只是我要添加的1个按钮。
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 . 这是演示 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.