{"action":"opened","issue":{"url":"https://api.github.com/repos/fritz-c/react-sortable-tree/issues/295","repository_url":"https://api.github.com/repos/fritz-c/react-sortable-tree","labels_url":"https://api.github.com/repos/fritz-c/react-sortable-tree/issues/295/labels{/name}","comments_url":"https://api.github.com/repos/fritz-c/react-sortable-tree/issues/295/comments","events_url":"https://api.github.com/repos/fritz-c/react-sortable-tree/issues/295/events","html_url":"https://github.com/fritz-c/react-sortable-tree/issues/295","id":318098137,"number":295,"title":"passing props to the treeNodeRenderer","user":{"login":"farukg","id":1577842,"avatar_url":"https://avatars2.githubusercontent.com/u/1577842?v=4","gravatar_id":"","url":"https://api.github.com/users/farukg","html_url":"https://github.com/farukg","followers_url":"https://api.github.com/users/farukg/followers","following_url":"https://api.github.com/users/farukg/following{/other_user}","gists_url":"https://api.github.com/users/farukg/gists{/gist_id}","starred_url":"https://api.github.com/users/farukg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farukg/subscriptions","organizations_url":"https://api.github.com/users/farukg/orgs","repos_url":"https://api.github.com/users/farukg/repos","events_url":"https://api.github.com/users/farukg/events{/privacy}","received_events_url":"https://api.github.com/users/farukg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-26T16:06:13Z","updated_at":"2018-04-26T16:06:13Z","closed_at":null,"author_association":"NONE","body":"# Requesting a Feature `generateTreeNodeProps`\r\n\r\n* What's your use case?\r\nI 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.\r\n![image](https://user-images.githubusercontent.com/1577842/39317178-41059502-497b-11e8-93d8-a25768fb66a8.png)\r\nI 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`. \r\n\r\n* What interface do you have in mind? \r\nI think it would be helpful to be able to pass props to the `treeNodeRenderer` similar to `nodeContentRenderer` with `generateNodeProps`.\r\n\r\nIf you any other solution, i would be glad to hear :)\r\nI 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.\r\nIf i would be able to either remove the line or place correctly i would be happy :)\r\n\r\nSincerely\r\nFaruk\r\n\r\n\r\n"}}
{"actor":{"display_login":"farukg"}}