Shunji Zhan
Shunji Zhan
hey, unfortunately there is such option yet, but sounds like a great feature for next version : )
> I would like to customize the new file icon and the folder icon I think something like this should work? ```tsx const FileIcon = ({ onClick: defaultOnClick, nodeData })...
> Also, it would be great if the event state contains the path of the new file/folder created. Thanks for the suggestion, will add it as a enhancement in later...
Hey, thanks for the suggestion, I am indeed planning to rewrite the whole lib to TS, just has been too busy to do it. Will let you know once it's...
ooooops seems we don't have a way to do that, sorry about it, but seems like a great FR for the next version
one hack way is to fork and change this line https://github.com/shunjizhan/react-folder-tree/blob/master/src/components/EditableName/EditableName.jsx#L56 so that when it sees the default name, it display what you need
something like ```ts { name === DEFAULT_NAME ? 'new page' : name } ```
Hi, thanks for trying it out! I read the link you sent, and what you tried is very close, but unfortunately in the last step when passing new state in...
Hi, we currently don't support defining custom icon in the data, but we can achieve similar behavior by returning different icons with conditions. For example for file icon: ```tsx const...
actually, the way you suggest might work, maybe we could actually carry that Icon itself in the data, it is just a function after all. Try it out! ```tsx const...