You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to have the current node data in the props of the custom button component? I.e making a pin button icon change if the current node is pinned, you would need to node the current node the button is on
The text was updated successfully, but these errors were encountered:
Yes, the node data is already passed to Custom Nodes (as nodeData). So you can get the location of the current node from nodeData.path.
I suggest you console.log the entire "props" object of your custom node to see all the info available (it's quite a bit, should be enough for most use cases)
Hi,
Is it possible to have the current node data in the props of the custom button component? I.e making a pin button icon change if the current node is pinned, you would need to node the current node the button is on
The text was updated successfully, but these errors were encountered: