Skip to content

Expose node click/tap callback (onNodeTap) #6

@Makukuu

Description

@Makukuu

Hi 👋

I’d like to show a detail sheet when a user taps a node, but the current API doesn’t expose a tap/click callback.

SankeyDiagram(data) .onNodeTap { id in // open editor for this node }

I tried forking the package and adding the functionality, but failed.

Could an official .onNodeTap { … } modifier be added (or any simple way to get node-click events)?

Thank for the great library!

Martin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions