2011-07-31 2 views
1

parent 하위에 div를 끌어다 놓을 수 있습니까? 아래 코드는 col1, col2, col3을 통해 끌어서 놓기가 가능합니다. 나는 그 열 자체와 함께 자식 구분을 끌어오고 싶습니다. 예 : 열 COL1 아이 A, B, C를 함유하고있는 경우는 A가 내부 divsions에bbc 글로우에서 여러 정렬 가능한 옵션으로 드래그 앤 드롭

new glow.widgets.Sortable(
    '#cols-example .col1, #cols-example .col2, #cols-example .col3', 
    { 
      draggableOptions : { 
        handle : 'strong' 
      } 
    } 
); 

답변

0
new glow.widgets.Sortable(
'#cols-example .col1, #cols-example .col2, #cols-example .col3', 
{ 
     draggableOptions : { 
       handle : 'strong' 
     } 
} 
); 

    new glow.widgets.Sortable(
    '#A .maincat', 
    { 
     constrainDragTo : '#A', 
     axis   : 'y', 
     onSort : function() { 

     // your code here  

      } 

    }); 

상기 코드는 잘 작동 아웃 A. 통해 정렬되어야한다. 하위 div를 A에 놓고 클래스를 제공하면 div에서 만 드래그 할 수 있습니다.