Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with reflex reactflow #898

Open
narenjcs opened this issue Sep 4, 2024 · 0 comments
Open

Issue with reflex reactflow #898

narenjcs opened this issue Sep 4, 2024 · 0 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@narenjcs
Copy link

narenjcs commented Sep 4, 2024

Path: /docs/wrapping-react/example/

not able to add custom node_type

node_type = {"colorPicker": rx.vstack(color_picker_node())}

return rx.vstack(
    color_picker_node(),
    react_flow(
        background(
            color="green",
        ),
        controls(),
        mini_map(),
        nodes_draggable=True,
        nodes_connectable=True,
        on_connect=lambda e0: State.on_connect(e0),
        on_nodes_change=lambda e0: State.on_nodes_change(
            e0
        ),
        nodes=State.nodes,
        edges=State.edges,
        node_types=node_type,
        # fit_view=True,
    ))
@narenjcs narenjcs changed the title Issue with reflex.dev documentation Issue with reflex reactflow Sep 4, 2024
@Alek99 Alek99 added bug Something isn't working documentation Improvements or additions to documentation labels Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants