Skip to content

Conversation

@gtk-grafana
Copy link
Collaborator

@gtk-grafana gtk-grafana commented Jul 18, 2025

Provide optional onExpand callback to give more flexibility in overriding default behavior.

For example, allowing users to visualize all child nodes on shift + click.
https://github.com/user-attachments/assets/fafe3389-9785-4c2d-a732-8c27cc1b006f

Also exposing new helper method: doesNodeContainNode to make it a bit simpler comparing nodes. Complementary to areKeyPathsEqual.

@todo clean up names

}, [expanded]);
const handleClick = useCallback(
(e: OnExpandEvent) => {
setExpanded(!expanded);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unify implementations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant