Skip to content

Support onClick action #68

@anilgulecha

Description

@anilgulecha

I Was looking for a JSON component to trigger actions basis what the key or value is.

In this component, just like there are edit/clipboard actions, it would be useful to have an action that can be provided at the nodes, and when clicked it triggers the callback with details. This behavior can be enabled via a prop at the high level.

Specific usecases for me: Some strings are markdown texts, so I'd like to know when a user clicks them, and then on the right showcase and render this data in that way. This can also be useful for nodes as well, which combines info and has a custom render.

Another ideal way (more complex) would be to support custom renderer of data at any level of nodes.

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