Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

can add drag limit? #60

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants