6
6
< title > AngularJS Plunker</ title >
7
7
< script > document . write ( '<base href="' + document . location + '" />' ) ; </ script >
8
8
< link rel ="stylesheet " href ="css/styles.css " />
9
- < script data-require ="angular.js@1.1 .x " src ="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5 /angular.js " data-semver ="1.1.5 "> </ script >
9
+ < script data-require ="angular.js@1.2 .x " src ="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.20 /angular.js " data-semver ="1.2.20 "> </ script >
10
10
< script src ="http://pc035860.github.io/angular-highlightjs/angular-highlightjs.min.js "> </ script >
11
11
< script src ="js/app.js "> </ script >
12
12
< script src ="draganddrop.js "> </ script >
@@ -21,9 +21,16 @@ <h4 class="heading">
21
21
</ h4 >
22
22
</ div >
23
23
24
+ < h3 > Beasts</ h3 >
25
+
26
+ < p > Left column of beasts is not draggable and accepts both beasts and priests</ p >
27
+
28
+ < hr >
29
+
24
30
< div class ="row " ng-controller ="MainCtrl ">
25
31
< div class ="col-xs-6 ">
26
- < ul ui-on-Drop ="onDrop($event,$data,men) " drop-channel ="beasts,priests ">
32
+ < ul ui-on-Drop ="onDrop($event,$data,men) " drag-enter-class ="bg-info "
33
+ drop-channel ="beasts,priests ">
27
34
< li ui-draggable ="false " drag ="man " drag-channel ="beasts "
28
35
29
36
on-drop-success ="dropSuccessHandler($event,$index,men) "
@@ -43,6 +50,12 @@ <h4 class="heading">
43
50
</ div >
44
51
</ div >
45
52
53
+ < hr >
54
+
55
+ < h3 > Priests</ h3 >
56
+
57
+ < hr >
58
+
46
59
< div class ="row " ng-controller ="MainCtrl ">
47
60
< div class ="col-xs-6 ">
48
61
< ul ui-on-Drop ="onDrop($event,$data,men) " drop-channel ="priests ">
@@ -63,6 +76,41 @@ <h4 class="heading">
63
76
</ ul >
64
77
</ div >
65
78
</ div >
79
+
80
+ < hr >
81
+
82
+ < h3 > Terrorists</ h3 >
83
+
84
+ < p > Each terrorist list item accepts a new terrorist. Shows inserting into a particular
85
+ position in an array.</ p >
86
+
87
+ < hr >
88
+
89
+
90
+ < div class ="row " ng-controller ="MainCtrl ">
91
+ < div class ="col-xs-6 ">
92
+ < ul >
93
+ < li ui-draggable ="true " drag ="man " drag-channel ="terrorists2 "
94
+ drag-hover-class ="bg-info "
95
+ on-drop-success ="dropSuccessHandler($event,$index,men) "
96
+ ui-on-Drop ="onDrop($event,$data,men) " drop-channel ="terrorists1 "
97
+ ng-repeat ="man in men track by $index ">
98
+ {{man}}
99
+ </ li >
100
+ </ ul >
101
+ </ div >
102
+ < div class ="col-xs-6 ">
103
+ < ul >
104
+ < li ui-draggable ="true " drag ="woman " drag-channel ="terrorists1 "
105
+ drag-hover-class ="bg-info "
106
+ ui-on-Drop ="onDrop($event,$data,women) " drop-channel ="terrorists2 "
107
+ on-drop-success ="dropSuccessHandler($event,$index,women) "
108
+ ng-repeat ="woman in women track by $index ">
109
+ {{woman}}
110
+ </ li >
111
+ </ ul >
112
+ </ div >
113
+ </ div >
66
114
</ div >
67
115
</ body >
68
116
0 commit comments