Skip to content

Add more documentation about check_callback #1063

Closed
@mikehaertl

Description

@mikehaertl

I couldn't really find a full documentation for all the check_callback parameters. What I found was:

So the signature is function (operation, node, parent, position, more). But that alone leaves many questions open:

  • What are all possible situations when the callback gets called and what are the respective values for operation?
  • For each situation, what do all the other parameters mean? Especially the more parameter is very complex. I found for dnd it's pos property can vary between i, a and b. What does this mean?

So it would be cool if you could add some more details here.

Thanks!

Activity

mikehaertl

mikehaertl commented on Apr 11, 2015

@mikehaertl
Author

Thanks!

tihomiro

tihomiro commented on Jun 7, 2017

@tihomiro

For anyone looking, the more.pos property can be any of the following:

  1. 'b' - addBefore
  2. 'a' - addAfter
  3. 'i' - append

Source: https://groups.google.com/forum/#!topic/jstree/qYPyhXcewuc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Add more documentation about check_callback · Issue #1063 · vakata/jstree