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

How to get sidebar (drag and drop) #60

Closed
vinhyenvodoi98 opened this issue Nov 8, 2019 · 2 comments
Closed

How to get sidebar (drag and drop) #60

vinhyenvodoi98 opened this issue Nov 8, 2019 · 2 comments

Comments

@vinhyenvodoi98
Copy link

After i install @mrblenny/react-flow-chart how i can code sidebar (drag and drop) like this
https://mrblenny.github.io/react-flow-chart/index.html?path=/story/sidebar--drag-and-drop

and return data (after use drag and drop ) about flowchart like :

            chartSimple: {
                offset: {
                    x: 0,
                    y: 0
                },
                nodes: {
                    node1: {
                        id: 'node1',
                        type: 'output-only',
                        position: {
                            x: 300,
                            y: 100
                        },
...

thanks .

@MehdiSaffar
Copy link

Try using FlowChart instead of FlowChartWithState and console log the state after the drop happens.

@MrBlenny
Copy link
Owner

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

No branches or pull requests

3 participants