-
Notifications
You must be signed in to change notification settings - Fork 82
/
IconBrowser.html
82 lines (72 loc) · 2.34 KB
/
IconBrowser.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="UTF-8">
<title>SAPUI5 Icon Browser</title>
<script id="sap-ui-bootstrap"
type="text/javascript"
src="/sapui5/latest/libs/resources/sap-ui-core.js"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-libs="sap.m"
>
</script>
<script>
jQuery.sap.require("sap.ui.core.IconPool");
var oTileContainer = new sap.m.TileContainer({
tiles: sap.ui.core.IconPool
.getIconNames()
.map(function(name) {
return new sap.m.StandardTile({
icon: sap.ui.core.IconPool.getIconURI(name),
title: name
});
})
});
var oAboutPopover = new sap.m.Popover("idAboutPopover", {
placement: sap.m.PlacementType.Bottom,
showHeader: true,
title: "About",
footer: new sap.m.Bar({
contentRight: [
new sap.m.Button({
text: "OK",
press: function() {
sap.ui.getCore().byId("idAboutPopover").close();
}
})
]
}),
content:
new sap.m.StandardTile({
icon: sap.ui.core.IconPool.getIconURI("initiative"),
title: "SAPUI5 Icon Browser",
info: "press for source",
press: function() {
window.open("https://github.com/qmacro/sapui5bin/blob/master/IconBrowser.html");
}
})
});
new sap.m.App({
pages: [
new sap.m.Page({
enableScrolling: false,
showHeader: true,
headerContent: [
new sap.m.Button({
icon: sap.ui.core.IconPool.getIconURI('initiative'),
press: function() {
oAboutPopover.openBy(this);
}
})
],
title: "SAPUI5 Icon Browser",
content: [ oTileContainer ]
})
]
}).placeAt("sapUiBody");
</script>
</head>
<body id="sapUiBody" role="application">
</body>
</html>