Click here to Skip to main content
15,944,837 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm trying to use a library called flowy which is a drag and drop flowchart but I'm having trouble outputting flowchart data from a data object.

I see on the github page
flowy.output();
and
flowy.import(output)
but I'm havimg trouble implementing.

Also how can I save a flow diagram that I create?

Thanks so much!

What I have tried:

I tried making a json object to import but I don't seem to get any blocks outputted. Here is a jsfiddle of what I'm working with.

flowy.import({
	"html": "",
	"blockarr": [],
	"blocks": [
		{
			"id": 1,
			"parent": 0,
			"data": [
				{
				"name": "blockid",
				"value": "1"
				},
        {
      "id": 2,
      "parent": 1,
      "connector": 2,
      "data": {
      "name": "block-id",
				"value": "2"
      }
    },
			],
			"attr": [
				{
				"id": "block-id",
				"class": "create-flowy"
				}
			]
		}
	]
})
Posted
Updated 22-Sep-20 10:03am
v2
Comments
Richard Deeming 23-Sep-20 4:12am    
If you have a question about how to use a GitHub library, and the documentation doesn't answer your question, the best place to ask is in the "Issues" for that project.
Issues · alyssaxuu/flowy · GitHub[^]
ynjay 23-Sep-20 11:34am    
Thanks so much!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900