React-sortable-tree: passing props to the treeNodeRenderer

Created on 26 Apr 2018  路  1Comment  路  Source: frontend-collective/react-sortable-tree

Requesting a Feature generateTreeNodeProps

  • What's your use case?
    I set isVirtualized to false and use dynamic rowHeights.
    I removed all lineHalfHorizontalRight except for the last children element. For the last elements without further children i need to remove all lines. See picture below.
    image
    I want to know if node is one of the last nodes without children and hide the lines. Therefore i need more info about the tree in the treeNodeRenderer.

  • What interface do you have in mind?
    I think it would be helpful to be able to pass props to the treeNodeRenderer similar to nodeContentRenderer with generateNodeProps.

If you any other solution, i would be glad to hear :)
I removed the horizontal lines, because i made the children expandable and was not able to place the horizontal lines on the icon-boxes as they are part of a bigger container.
If i would be able to either remove the line or place correctly i would be happy :)

Sincerely
Faruk

enhancement question

Most helpful comment

@farukg unfortunately that isn't currently possible.

We have to do some tricky styles and calculations to get the tree path visualizations.

Perhaps in the next big release

>All comments

@farukg unfortunately that isn't currently possible.

We have to do some tricky styles and calculations to get the tree path visualizations.

Perhaps in the next big release

Was this page helpful?
0 / 5 - 0 ratings

Related issues

theonelucas picture theonelucas  路  3Comments

robhadfield picture robhadfield  路  3Comments

JonatanGarciaClavo picture JonatanGarciaClavo  路  3Comments

bigjujube picture bigjujube  路  4Comments

jorgecuesta picture jorgecuesta  路  4Comments