alyssaxuu / flowy

The minimal javascript library to create flowcharts ✨
MIT License
11.48k stars 998 forks source link

Adding blocks programmatically #69

Closed fj-iv closed 4 years ago

fj-iv commented 4 years ago

I'm creating an 'on rails' control flow diagram where users are guided trough the process and they have limited options regarding the kind of block/condition they can add depending on the level they are. For this reason I want to limit the drag & drop feature and instead have an 'add' button below every block. What would be a good a approach for this? I've tried mimicking mouse events with little succes and export/edit/import of the diagram config but I am unsure about what parameters are mandatory. Do I need a valid HTML structure, is it created from blocks/blockarr? Any help/input is welcome and of course, if I get this workign and anyone else is interested I'll make it available for everyone.

Thanks.

yellow1912 commented 4 years ago

https://github.com/alyssaxuu/flowy/issues/53

I think this is the issue to follow