@@ -50,7 +50,7 @@ <h2 class="h3 m0">
50
50
< div class ="px2 muted ">
51
51
forcePlaceholderSize: true,< br />
52
52
placeholderClass: 'ph-class', < br />
53
- hoverClass: 'bg-maroon yellow' < br />
53
+ hoverClass: 'bg-maroon yellow', < br />
54
54
</ div >
55
55
< div > });</ div >
56
56
</ code >
@@ -63,7 +63,6 @@ <h2 class="h3 m0">
63
63
< li class ="p1 mb1 navy bg-yellow " style ="position: relative; z-index: 10 "> Item 3</ li >
64
64
< li class ="p1 mb1 navy bg-yellow " style ="position: relative; z-index: 10 "> Item 4</ li >
65
65
< li class ="p1 mb1 navy bg-yellow " style ="position: relative; z-index: 10 "> Item 5</ li >
66
- < li class ="p1 mb1 navy bg-yellow " style ="position: relative; z-index: 10 "> Item 6</ li >
67
66
</ ul >
68
67
< button class ="ml4 js-serialize-button button navy bg-yellow "> Serialize</ button >
69
68
< script type ="text/javascript ">
@@ -424,6 +423,7 @@ <h2 class="h3 m0">Sortable Copy</h2>
424
423
< code class ="mb0 ">
425
424
< div > sortable('.o-sortable', {</ div >
426
425
< div class ="px2 muted "> copy:true // default to false</ div >
426
+ < div class ="px2 muted "> maxItems: 2</ div >
427
427
< div > });</ div >
428
428
</ code >
429
429
</ div >
@@ -452,9 +452,10 @@ <h2 class="h4 mt1">Copy items here</h2>
452
452
placeholderClass : 'mb1 bg-navy border border-yellow' ,
453
453
} ) ;
454
454
sortable ( '.js-sortable-copy-target' , {
455
- forcePlaceholderSize : true ,
455
+ forcePlaceholderSize : true ,
456
456
acceptFrom : '.js-sortable-copy,.js-sortable-copy-target' ,
457
- placeholderClass : 'mb1 border border-maroon' ,
457
+ placeholderClass : 'mb1 border border-maroon' ,
458
+ maxItems : 2
458
459
} ) ;
459
460
sortable ( '.js-grid' , {
460
461
forcePlaceholderSize : true ,
0 commit comments