Is there a way to change Input names similar to getOperatorTitle function?
I was using your plugin, so far so good. until i came across the getOperatorTitle function. it would be a really big help if you would help me get in track in your plugin on how can i rename the input inside the operator UI wise.
Hi Ting,
Sorry for my late answer, I am very busy at the moment.
Here is a way you could do both of those things. Go to :
http://sebastien.drouyer.com/jquery.flowchart-demo/#example_7
Click "Get data".
In the input box replace "label": "Output 1" by "label": "Renamed"
Click "Set data".
In the input box, add: ,"output_2": { "label":"titi" }
After:
"output_1": { "label": "Renamed" }
You could also use "setOperatorData".
Cheers,
Sébastien
is there anyway to automate it? in an API? I mean ill be creating some sort of editor so that you can edit the label..
yes we can get the data loop then somehow edit the label then reload the page.. but it will be good to expose a method to do it..
There is no need to reload the page, just use getOperatorData and setOperatorData.
got it now. thank you!