2017-09-18 11 views

답변

0

구문은 정확하다. 코드 공유가 도움이되었을 것입니다.

Ext.create('Ext.tree.Panel', { 
     viewConfig: { 
      plugins: { 
       ptype: 'treeviewdragdrop', 
       appendOnly: true, 
       ddGroup: 'sampleDDGroup' 
      } 
     }, 
     root: { 
      text: 'Root', 
      expanded: true, 
      children: [{ 
       text: 'A', 
       expanded: true, 
       children: [{ 
        text: '1', 
        leaf: true 
       }, { 
        text: '2', 
        leaf: true 
       }] 
      }, { 
       text: 'B', 
       expanded: true, 
       children: [{ 
        text: '1', 
        leaf: true 
       }] 
      }] 
     }, 
     renderTo: Ext.getBody() 
    }); 

확인이 바이올린 : Fiddle

다음

는 작업 예제입니다