@@ -9,13 +9,35 @@ <h2 class="tagline full-featured">
99 < strong > Full-featured</ strong > Form Editing</ h2 >
1010 </ div >
1111 < section id ="main_content " class ="inner clearfix ">
12+ < div class ="pull-right " style ="margin-bottom:10px; ">
13+ < label class ="label "> Gutter :</ label >
14+ < nz-select [(ngModel)] ="grid.colGutter " [nzPlaceHolder] ="'' " name ="colGutter " [nzDisabled] ="grid.colNum==1 ">
15+ < nz-option nzLabel ="10px " [nzValue] ="10 "> </ nz-option >
16+ < nz-option nzLabel ="20px " [nzValue] ="20 "> </ nz-option >
17+ < nz-option nzLabel ="30px " [nzValue] ="30 "> </ nz-option >
18+ < nz-option nzLabel ="40px " [nzValue] ="40 "> </ nz-option >
19+ </ nz-select >
20+ </ div >
21+ < div class ="pull-right " style ="margin-bottom:10px; ">
22+ < label class ="label "> Columns :</ label >
23+ < nz-select [(ngModel)] ="grid.colNum " [nzPlaceHolder] ="'' " name ="colNum " (ngModelChange) ="colNumChanged($event) ">
24+ < nz-option *ngFor ="let col of colNumList;let i=index; " [nzLabel] ="col.label " [nzValue] ="col.value "> </ nz-option >
25+ </ nz-select >
26+ </ div >
27+ <!-- form builder -->
1228 < div class ="build-form ">
1329 < div class ="form-wrap form-builder ">
14- < div class ="stage-wrap pull-right empty " data-content ="Drag a field from the right to this area " id ="drogbox ">
15- < ul class ="frmb ui-sortable " style ="min-height: 508px; " dnd-sortable-container [sortableData] ="targetList " (onDropSuccess) ="addTo($event) ">
16- < li dnd-sortable [sortableIndex] ="i " *ngFor ="let item of targetList; let i = index " class ="list-group-item "> {{item.label}}</ li >
17- </ ul >
30+ <!-- dropping list -->
31+ < div class ="stage-wrap pull-right box " [ngClass] ="{'empty':grid.colNum==1} " data-content ="Drag a field from the right to this area " id ="drogbox ">
32+ < div nz-row [nzGutter] ="grid.colGutter ">
33+ < ng-container *ngFor ="let p of dropPanels;let pi=index ">
34+ < ul nz-col [nzSpan] ="[24/grid.colNum] " class ="frmb ui-sortable " style ="min-height: 508px; " dnd-sortable-container [sortableData] ="p.targetList " (onDropSuccess) ="addTo($event) ">
35+ < li dnd-sortable [sortableIndex] ="i " *ngFor ="let item of p.targetList; let i = index " class ="list-group-item "> {{item.label}}</ li >
36+ </ ul >
37+ </ ng-container >
38+ </ div >
1839 </ div >
40+ <!-- drag box -->
1941 < div class ="cb-wrap pull-left " dnd-sortable-container [sortableData] ="listCtrls " [dragCopy] ="true " id ="dragbox ">
2042 < ul class ="frmb-control ui-sortable ">
2143 < li *ngFor ="let item of listCtrls; let i = index " dnd-sortable [sortableIndex] ="i " class ="{{item.icon}} input-control ui-sortable-handle ">
0 commit comments