Skip to content

Preventing drop for certain tree nodes #89

Open
@dini-m

Description

@dini-m

Hello phphe,

I am trying to limit the dropping of certain tree nodes underneath certain other tree nodes. Now I have different text in the data array and want to forbid that a tree node with the text 'A' from being child of a tree node with text 'B', even though they are droppable. Which position is the best to place this limitation? I tried putting the code in autoMoveDragPlaceHolder, in append and append Prev, and also in the function insertDplhAfterTo, but it doesn't work properly. It would be great if you could tell me what the append, prepend and the likes actually do.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions