mxgraph-editor icon indicating copy to clipboard operation
mxgraph-editor copied to clipboard

convert to reactjs project

Open dinesh-offl opened this issue 5 years ago • 6 comments

i want to convert the https://github.com/jgraph/mxgraph project into reactjs completely and i dont know how to implement. i just want to import all JS files in a component that renders the graph. I hope you will respond me. Thanks in advance

PS: when i import all JS files, every function gets 'undefined'

dinesh-offl avatar Jul 22 '19 09:07 dinesh-offl

Try : https://codesandbox.io/s/github/eyupcolak/mxgraph-react https://github.com/eyupcolak/mxgraph-react

davizucon avatar Jul 25 '19 12:07 davizucon

Thank you so much for considering ;) Actually, i need the same toolbar and sidebar which is available in the official mxgraph and that is the biggest problem to import now. is there any easy way to import the grapheditor/www/js/ files inside your react project?

Thanks in advance

dinesh-offl avatar Jul 25 '19 13:07 dinesh-offl

Is this issue resolved?

mubarok-iqbal avatar Apr 13 '20 01:04 mubarok-iqbal

Hi Dinesh, Actually I am also having the same problem. Are you able solve this issue. If yes can you also mention how you added the same toolbar and sidebar in your react project.

Thanks in advance.

SandeepRCH avatar Jun 25 '20 12:06 SandeepRCH

Hello @SandeepRCH @dinesh-offl @davizucon , I wanted the same thing.. Any update about same toolbar and sidebar like https://jgraph.github.io/mxgraph/javascript/examples/grapheditor/www/index.html with react? Thank you in advance.

RichaShah9 avatar Jul 07 '20 11:07 RichaShah9

Hello, mee too i'm trying to webpack the grapheditor example. I'd like to avoid any particular framework and keep everything in plain js but unfortunately all questions and issue relate to Angular o react... any suggestion is appreciated ;)

lbrutti avatar Sep 18 '20 20:09 lbrutti