Skip to content

Commit 3eca788

Browse files
Allen CatadmanAllen Catadman
authored andcommitted
combine layout
1 parent aab6ed9 commit 3eca788

File tree

3 files changed

+69
-3
lines changed

3 files changed

+69
-3
lines changed

_me/form2.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
title : "Our Complex Form"
3+
,layout : "hbox"
4+
// ,height : 120
5+
,layoutConfig : {
6+
align : "stretch"
7+
}
8+
,items : [{
9+
xtype : "fieldset"
10+
,title : "Name Information"
11+
,flex : 1
12+
,border : false
13+
,defaultType : "field"
14+
,items : [{
15+
fieldLabel : "First"
16+
,name : "first"
17+
},{
18+
fieldLabel : "Middle"
19+
,name : "middle"
20+
},{
21+
fieldLabel : "Last"
22+
,name : "last"
23+
}]
24+
},{
25+
xtype: "fieldset"
26+
,title : "Address Information"
27+
,flex : 1
28+
,border : false
29+
,defaultType : "field"
30+
,items : [{
31+
fieldLabel : "Address"
32+
,name : "address"
33+
// ,xtype : "textfield"
34+
},{
35+
fieldLabel : "Street"
36+
,name : "street"
37+
// ,xtype : "textfield"
38+
},{
39+
xtype : "container"
40+
,layout : "column"
41+
,anchor : '100%'
42+
,items : [{
43+
xtype : "container"
44+
,layout : "form"
45+
,width : "50%"
46+
,items : [{
47+
xtype : "textfield"
48+
,fieldLabel : "State"
49+
,name : "state"
50+
,anchor : '-20'
51+
}]
52+
},{
53+
xtype : "container"
54+
,layout : "form"
55+
,columnWidth : 1
56+
// ,labelWidth : 30
57+
,items : [{
58+
xtype : "textfield"
59+
,fieldLabel : "Zip"
60+
// ,anchor : '-10'
61+
,name : "zip"
62+
}]
63+
}]
64+
}]
65+
}]
66+
}

_me/me.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<!-- page specific -->
1818
<!-- <script type="text/javascript" src="me.js"></script> -->
1919
<script type="text/javascript" src="layout.js"></script>
20-
<script type="text/javascript" src="main-panel.js"></script>
20+
2121
</head>
2222

2323

_me/tree-data.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ children: [{
88
id:'form1',
99
leaf:true,
1010
},{
11-
text:'Accordion',
12-
id:'accordion',
11+
text:'Form 2',
12+
id:'form2',
1313
leaf:true
1414
},{
1515
text:'Anchor',

0 commit comments

Comments
 (0)