設置桌面快捷方式的工具提示的最佳方式是什麼?ExtJS 4桌面 - 如何設置桌面快捷方式工具提示
在我的getDesktopConfig()中,我創建了一個帶有字段iconCls,模塊,名稱的快捷數據數組。下面是增加一個用戶模塊的快捷方式到陣列,然後設置陣列作爲快捷方式的數據存儲,其被用於創建桌面快捷方式的數據屬性的示例:
Ext.define("MyDesktop.App", {
extend: "Ext.ux.desktop.App",
....
getDesktopConfig: function() {
var b = this;
var a = b.callParent();
.....
shortcut_data.push({
iconCls: "users-shortcut",
module: "users-module-window",
name: "Users"
});
......
return Ext.apply(a,{
contextMenuItems: [{
text: "Dashboards",
handler: b.onDashboards,
scope: b
}],
shortcuts: Ext.create("Ext.data.Store",{
model: "Ext.ux.desktop.ShortcutModel",
data: shortcut_data
}),
wallpaper: "/assets/MyApp_Wallpaper.jpg",
wallpaperStretch: false
})
})
},
.....
您錯過了一條重要的信息。呈現快捷方式的組件是什麼?如果這是你的快捷方式配置圖標Cls:「用戶快捷方式」, 模塊:「用戶模塊窗口」, 名稱:「用戶」 }它適用於什麼? – dbrin 2011-12-15 00:11:46
快捷方式已添加到桌面應用程序中。更新問題。 – 2011-12-15 00:23:24