-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path19_overlay.html
96 lines (88 loc) · 2.19 KB
/
19_overlay.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html>
<head>
<meta charset="euc-kr">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<title>Sencha Touch</title>
<link rel="shortcut icon" href="../image/icon.png">
<link rel="apple-touch-icon" href="../image/icon.png">
<link rel="stylesheet" type="text/css" href="./sdk/resources/css/sencha-touch.css">
<script type="text/javascript" src="./sdk/sencha-touch.js"></script>
<script type="text/javascript">
Ext.Loader.setConfig({ enabled: true });
Ext.require("Ext.TitleBar");
</script>
<script type="text/javascript">
Ext.application({
name: "MyApp",
launch: function() {
var overlay1 = Ext.create("Ext.Panel", {
modal: true,
centered:true,
hidden:true,
width: 260, height: 240,
items: {
xtype:"titlebar",
docked:"top",
title:"Overlay",
items: [
{
text:"X",
align:"right",
ui:"decline",
handler: function(btn, event) {
overlay1.hide();
}
}]
},
html:"<img src='../image/image2.png'>",
scrollable: true,
});
Ext.Viewport.add(overlay1);
var overlay2 = Ext.create("Ext.Panel", {
modal: true,
centered:true,
hidden:true,
hideOnMaskTap:true,
width: 260, height: 130,
items: {
xtype:"titlebar",
docked:"top",
title:"Overlay"
},
html:"Shows this Component next to another Componen",
scrollable: true,
});
Ext.Viewport.add(overlay2);
var toolbar = {
docked: 'top',
xtype: 'toolbar',
items: [
{
text: 'showCentered',
ui: "confirm",
handler: function(btn, event) {
overlay1.setCentered(true);
overlay1.show();
}
},
{
text: 'showBy',
ui: "confirm",
handler: function(btn, event) {
overlay2.showBy(btn)
}
}
]
};
var rootPanel = Ext.create("Ext.Panel", {
items: [ toolbar ]
});
Ext.Viewport.add(rootPanel);
}
});
</script>
</head>
<body>
</body>
</html>