ClosureTable icon indicating copy to clipboard operation
ClosureTable copied to clipboard

Proper use of the "position" attribute

Open arminlinder opened this issue 8 years ago • 1 comments

It has been asked before, but somehow the answer is not helpful: your tree library contains a "position" attribute, so the nodes of a level can be sorted. I see that some methods have optional "position" paerameters, but I could not figure out how to retrieve a whole (sub)tree (getDescendants / getDescendantsTree) with subtree nodes sorted by position.

Can you please clarify?

Thx, Armin.

arminlinder avatar Sep 14 '17 11:09 arminlinder

Did a lot of research, and found that closuretable does not seem to honor the "position" attribute when I use getDescendants, but it does so if I use getChildren.

I consider this a bug, at least an annoyance, because

  • similar functions should behave in a consistent manner
  • the returned data of getDescendants is worthless for the client, because my client tree structure will not let me assign positions out of order, e.g. i cannot insert position "4" unless positions 1,2,3 have been loaded.

Anything I can do?

Armin.

arminlinder avatar Sep 21 '17 07:09 arminlinder