my toolbar
there はcheckbox
、有効化と無効化に使用されtooltip
ます。checkbox
チェックされている場合は有効にする必要tooltip
があり、そうでない場合は機能しており、無効にする必要があります。を無効にした後、どのアイテムもtooltip
クリックしないと有効になります。toolbar
toolbar
toogleTooltip
handler
の_checkbox
function toggleTooltip() {
debugger;
if (Ext.getCmp("msai_tool_tip").checked) {
Ext.QuickTips.enable();
while (!Ext.QuickTips.isEnabled())
Ext.QuickTips.enable();
} else {
Ext.QuickTips.disable();
while (Ext.QuickTips.isEnabled())
Ext.QuickTips.disable();
}
}
これは私のツールバー作成コードです:
Ext.QuickTips.init();
var tb = new Ext.Toolbar({
id: 'form_menu_bar',
renderTo: Ext.get('newproducttitle').dom,
items: [{
tooltip: {
text: "Click on this button to generate the template and save it in server.",
title: "Save",
xtype: "quicktip"
},
iconCls: 'msai_save_template',
handler: generateTemplate
}, {
tooltip: {
text: "Click on this button to generate the template.",
title: "Save to clipboard",
xtype: "quicktip"
},
iconCls: 'msai_save_clipboard',
handler: generateTemplateClipboard
}]
});
tooltip
ユーザーがどのアイテムでもなくツールバーをクリックした場合に が表示されないように、いくつかの解決策を提案してください。