Skip to content

can add drag limit? #60

Open
Open
@fashman

Description

@fashman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions