I'm able to create a node using this interface but when I use the onClick function on my CheckboxTree component to console.log() the path, it shows undefined
The library as written does not apply any additional extensions to the node objects. However, this is a straight-forward and reasonable enough use case that it can be a future enhancement.
Hi Jake, first of all, thank you for creating this library.
Is there a way to extend the Node object? I'm asking because I would like to have a
path
property.What I did, that didn't work, was the following.
Created a file named react-checkbox-tree.d.ts in my types folder, and wrote the following
I'm able to create a node using this interface but when I use the
onClick
function on my CheckboxTree component toconsole.log()
the path, it showsundefined
Thank you!