reflex-web icon indicating copy to clipboard operation
reflex-web copied to clipboard

Issue with reflex reactflow

Open narenjcs opened this issue 5 months ago • 0 comments

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 avatar Sep 04 '24 07:09 narenjcs