Skip to content

Question: How to prevent node from being dropped before another node at top level? #317

Open
@kanli1984

Description

@kanli1984

Is it possible to prevent node from being dropped before specific node at top level? This is possible for non-top level node since nextParent with latest state of children will be passed to canDrop callback. For top level node, nextParent is null and I can't figure way to get latest state of tree. Without latest state of tree, how can I tell in front of which node it's being dropped?

Example (How to prevent PF 1 and PF 2 from being dropped before SF 1 & SF 2?)

SF 1
--SF 1.1
----SF 1.1.1
SF 2
--SF 2.1
PF 1
PF 2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions