Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hpseitz
committed
Nov 23, 2014
1 parent
ca54907
commit c141b3c
Showing
12 changed files
with
156 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//UI5 Boilerplate Configuration | ||
jQuery.sap.declare("ui5bp.app.config"); | ||
|
||
ui5bp.app.config = { | ||
|
||
//Navigation Mode (LaunchpadMode: false -> LeftMenu Navigation) | ||
LaunchpadMode: true | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
sap.ui.controller("ui5bp.view.Launchpad", { | ||
|
||
onInit: function() { | ||
this.bus = sap.ui.getCore().getEventBus(); | ||
}, | ||
|
||
doNavOnSelect : function (event) { | ||
this.bus.publish("nav", "to", { | ||
id : event | ||
}); | ||
} | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// ======= HECQTA ======== | ||
sap.ui.jsview("ui5bp.view.Launchpad", { | ||
|
||
getControllerName: function() { | ||
return "ui5bp.view.Launchpad"; | ||
}, | ||
|
||
createContent: function(oController) { | ||
|
||
var tc = new sap.m.TileContainer("tc", {}); | ||
|
||
var model = new sap.ui.model.json.JSONModel("model/menu.json"); | ||
model.attachRequestCompleted(null, function() { | ||
function navFn(target) { | ||
return function() { | ||
oController.doNavOnSelect(target); | ||
} | ||
} | ||
|
||
var data = null, | ||
m = 0, | ||
menu = null; | ||
data = model.getData(); | ||
if (data && data.Menu) { | ||
for (m = 0; m < data.Menu.length; m++) { | ||
menu = data.Menu[m]; | ||
tc.addTile(new sap.m.StandardTile({ | ||
icon: menu.icon, | ||
title: menu.title, | ||
info: menu.title, | ||
press: navFn(menu.targetPage) | ||
})); | ||
} | ||
} | ||
|
||
}); | ||
|
||
var page = new sap.m.Page({ | ||
setShowHeader: true, | ||
title: "UI5 Boilerplate Launchpad", | ||
footer: new sap.m.Bar({ | ||
contentMiddle: [new sap.m.Link("myproLinkLP", { | ||
text: "v0.8.0", | ||
href: "http://blog.mypro.de/tag/ui5boilerplate/" | ||
})] | ||
|
||
}) | ||
}); | ||
|
||
page.setEnableScrolling(false); | ||
page.setShowHeader(true); | ||
page.addContent(tc); | ||
|
||
return page; | ||
} | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters