デスクトップ ショートカットのツールチップを設定する最良の方法は何ですか?
getDesktopConfig() で、フィールド iconCls、module、name を持つショートカット データの配列を作成します。ユーザー モジュールのショートカットを配列に追加し、デスクトップ ショートカットの作成に使用されるショートカット データ ストアのデータ プロパティとして配列を設定する例を次に示します。
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
})
})
},
.....