jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.65k stars 722 forks source link

Clickable nodes when editor locked #368

Closed jf19742016 closed 2 years ago

jf19742016 commented 2 years ago

Hello,

Is it possible to lock the editor for "editing" but still have the nodes clickable? I'm trying to create a mechanism where someone can build a flow and then associate information with the nodes. I then want to lock the flow but the nodes be clickable so the viewer can see the additional information.

Thanks

jerosoler commented 2 years ago

View editor mode.

editor.editor_mode = 'edit';

Support three values: edit, fixed, view

jf19742016 commented 2 years ago

Thank you for responding so quickly and on the weekend. I did miss that - doh. However putting it into view mode, nodes are still not clickable?

jerosoler commented 2 years ago

Try fixed method.

Explain methods: edit for edit, fixed for nodes fixed but their input fields available, view for view only

jf19742016 commented 2 years ago

I used your example and it's in fixed mode. The nodes are not clickable?

jerosoler commented 2 years ago

View similar questions:

jf19742016 commented 2 years ago

Perfect thank you.