1
你好,我有一個工具窗口。我有工具:'help',當點擊它時,我希望它從我的HTML文件輸出帶有文本的工具提示,但實際上它顯示alert('Help'),並且不會從文件輸出:輸出工具提示,如果點擊工具
tools: [
{
type: 'refresh',
name: 'refresh',
tooltip: 'reload'
},
{
type: 'help',
handler: function (event, toolEl, panel) {
alert('Help');
var tooltips = [{
target: 'tip1',
html: 'A very simple tooltip'
}, {
target: 'ajax-tip',
width: 200,
autoLoad: {url: '/help/note/help.html'},
dismissDelay: 15000 // auto hide after 15 seconds
},
];
Ext.each(tooltips, function (config) {
Ext.create('Ext.tip.ToolTip', config);
});
},
}
]
此圖爲什麼其實我是想:
您正在使用的ExtJS的版本,使用下列? – 2014-12-02 15:00:34
我使用分機4.2.1 – user3045654 2014-12-04 08:34:32