如何设置面板“标题栏”中使用的图标?也许我需要自己添加一个图像,但如果是这样我想我需要在某个地方定义或配置它?
{
xtype: 'treepanel',
title: 'Projects',
width: 200,
store: Ext.data.StoreManager.lookup('projects'),
tools: [
{
type: 'add', // this doesn't appear to work, probably I need to use a valid class
tooltip: 'Add project',
handler: function() {
console.log('TODO: Add project');
}
},
...
]
},