-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path06_layout_vbox.html
42 lines (30 loc) · 1.06 KB
/
06_layout_vbox.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<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.application({
name: "MyApp",
launch: function() {
var btn1 = Ext.create("Ext.Button", {text: "버튼1"});
var btn2 = Ext.create("Ext.Button", {text: "버튼2"});
var btn3 = Ext.create("Ext.Button", {text: "버튼3"});
var rootPanel = Ext.create("Ext.Panel", {
layout: { type: "vbox", align: "middle", pack: "justify" },
items: [ btn1, btn2, btn3 ]
});
Ext.Viewport.add(rootPanel);
}
});
</script>
</head>
<body>
</body>
</html>