`
var Observable = require('FuseJS/Observable');
var menuItems = [{
"title": "Menu Item 01",
"icon": "\ue82e", // Basket
"goto": "goItem1"
}, {
"title": "Menu Item 02",
"icon": "\ue82a", // User
"goto": "goItem2"
}, {
"title": "Menu Item 03",
"icon": "\ue844", // Sent
"goto": "goItem3"
}, {
"title": "Menu Item 04",
"icon": "\ue820", // Logout
"goto": "goItem4"
}];
function clone(obj) {
return JSON.parse(JSON.stringify(obj));
}
function itemClicked(arg) {
console.dir(arg.data);
}
module.exports = {
menuItems: menuItems,
getMenuItems: function () { return clone(menuItems); },
itemClicked: function (arg) { console.dir(arg.data); }
}
`