frontend-collective / frontend-collective/react-sortable-tree

Flipping rendering order from (parent -> children) to (children -> parent)

Open
#834 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
914
PR merge metrics
No merged PRs in 30d

Description

Thanks for releasing such a great piece of software.

I'm wondering if there is a low-effort way to flip the rendering order of the tree from parent->children to children->parent, as shown in the diagram below. I've spent a few hours plugging away in the renderer to get a sense of things -- it's not clear whether a simple reordering of rows[] would work, or if it's substantially more involved. If someone more familiar with the renderer could chime in, that would be wonderful.

![react-sortable-tree-question](https://user-images.githubusercontent.com/3813268/100001594-9e4f6800-2d80-11eb-8b08-fef9c70693f7.png)

best wishes,
Peter

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.