Skip to content

can add drag limit? #60

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
fashman opened this issue Aug 2, 2017 · 0 comments
Open

can add drag limit? #60

fashman opened this issue Aug 2, 2017 · 0 comments
Labels

Comments

@fashman
Copy link

fashman commented Aug 2, 2017

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.

@wangzuo wangzuo added the feature label Aug 3, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants