react-ui-tree icon indicating copy to clipboard operation
react-ui-tree copied to clipboard

can add drag limit?

Open fashman opened this issue 8 years ago • 0 comments

is there anyway to limit drag at the same parent? ps

tree = {
  module: 'tree',
  children: [
    { 
      module: 'parentA',
      children: [
        { module: 'a1'},
        { module: 'a2'}
      ]
    },
    { 
      module: 'parentB',
      children: [
        { module: 'b1'},
        { module: 'b2'}
      ]
    }
  ]
}

parentA's children can only drag in parentA; can add drag limit ? such as beforeDrag callback to stop dragging.

fashman avatar Aug 02 '17 12:08 fashman