Add icon in node renderer
Requesting a Feature?
Provide a way to add an icon in a node
Implementation available in pull request https://github.com/frontend-collective/react-sortable-tree/pull/861

Did you try to use generateNodeProps for that? Maybe just emit subtitle and use title (ReactNode is type) as your icon + some other parts...
Nop, do you have a capture of the result of this solution?
I don't know how you got this project to work, but I'd love to see a code dump/pen/sandbox !!!
I don't know how you got this project to work, but I'd love to see a code dump/pen/sandbox !!!
Hi @ajoslin103, this is available in the Pull Request #861.
Apologies for being unclear - I cannot get this library to even start in my ElectronJS+React+Typescript project (built on this boilerplate: https://github.com/Robinfr/electron-react-typescript) I was hoping that someone had something running with react 16.8
Apologies for being unclear - I cannot get this library to even start in my ElectronJS+React+Typescript project (built on this boilerplate: https://github.com/Robinfr/electron-react-typescript) I was hoping that someone had something running with react 16.8
I am currently using this library in my project that is using React ^16.8.0 as dependency.
Maybe there is problem with new versions and features of typescript , currently I am using ^4.1.2 and also:
"@types/react-sortable-tree": "^0.3.12",
"@types/react-sortable-tree-theme-file-explorer": "^0.0.0"
Everything is working fine for me. Just I am not using suggesting (theirs) function for recursive updates of tree, make yourself good ones.
Nop, do you have a capture of the result of this solution?
You can do it in many ways, choice is left to you for implementation details.
Here is a quick ss to take a look:

@glisA99 Can you show code for this example?