-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.html
More file actions
157 lines (154 loc) · 5.87 KB
/
test.html
File metadata and controls
157 lines (154 loc) · 5.87 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Ext.ux.LeftTitlePanel Title Header on left for Ext.Panel Plugin</title>
<!-- Include extjs for this test -->
<link rel="stylesheet" type="text/css" href="../ext3/resources/css/ext-all.css" />
<script type="text/javascript" src="../ext3/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../ext3/ext-all-debug.js"></script>
<!-- Include the plugin files -->
<link rel="stylesheet" type="text/css" href="css/LeftTitlePanel.css" />
<script type="text/javascript" src="js/LeftTitlePanel.js"></script>
<script type="text/javascript">
var LeftTitlePanel = {ptype:'lefttitlepanel'};
Ext.onReady(function(){
new Ext.Panel({
title : 'Example 1 Frame with tools',
plugins : LeftTitlePanel,
preventBodyReset : true,
closable : true,
padding : 10,
tools : [{
id : 'refresh',
scope : this,
handler : function(){
this.showEdit()
}
},{
id : 'close',
handler : function(e, target, panel){
panel.ownerCt.remove(panel, true);
}
}],
collapsible : true,
frame : true,
border : false,
renderTo : 'example1',
width : 600,
html : 'This is a panel with frame and variuos tools + no height<br> <br> <br> <br> '
});
new Ext.Panel({
title : 'Example 2: Frame with toolbar',
plugins : LeftTitlePanel,
preventBodyReset : true,
closable : true,
padding : 10,
tbar : [
{
text : 'This is a button on the toolbar'
}
],
collapsible : true,
frame : true,
border : false,
renderTo : 'example2',
width : 600,
height : 400,
html : 'This is a panel with frame and toolbar, with collapse tool + height setted at 400'
});
new Ext.Panel({
title : 'Example 3 : No Frame without border',
plugins : LeftTitlePanel,
preventBodyReset : true,
closable : true,
bbar : [
{
text : 'This is a button on the toolbar'
}
],
padding : 10,
tools : [{
id : 'refresh',
scope : this,
handler : function(){
this.showEdit()
}
},{
id : 'close',
handler : function(e, target, panel){
panel.ownerCt.remove(panel, true);
}
}],
collapsible : true,
border : false,
renderTo : 'example3',
width : 400,
html : 'This is a panel with no frame and variuos tools + no height<br> <br> <br> <br> '
});
new Ext.Panel({
title : 'Example 4: No Frame with border and toolbar',
plugins : LeftTitlePanel,
preventBodyReset : true,
closable : true,
padding : 10,
tbar : [
{
text : 'This is a button on the toolbar'
}
],
border : true,
renderTo : 'example4',
width : 600,
height : 365,
html : 'This is a panel without frame and toolbar + height setted at 365'
});
new Ext.Panel({
title : 'Example 5: No Frame with border and 2 toolbars',
plugins : LeftTitlePanel,
preventBodyReset : true,
closable : true,
tools : [{
id : 'refresh',
scope : this,
handler : function(){
this.showEdit()
}
},{
id : 'close',
handler : function(e, target, panel){
panel.ownerCt.remove(panel, true);
}
}],
padding : 10,
tbar : [
{
text : 'This is a button on the toolbar'
}
],
bbar : [
{
text : 'This is a button on the toolbar'
}
],
border : true,
renderTo : 'example5',
width : 650,
height : 350,
html : 'This is a panel without frame and 2 toolbars + height setted at 350'
});
})
</script>
</head>
<body>
<div id="example1" style="padding:10px;clear:both;">
</div>
<div id="example2" style="padding:10px;clear:both;">
</div>
<div id="example3" style="padding:10px;clear:both;">
</div>
<div id="example4" style="padding:10px;clear:both;">
</div>
<div id="example5" style="padding:10px;clear:both;">
</div>
</body>
</html>