jquery.flowchart icon indicating copy to clipboard operation
jquery.flowchart copied to clipboard

Is there a way to change Input names similar to getOperatorTitle function?

Open terenceting opened this issue 8 years ago • 4 comments

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.

terenceting avatar Apr 20 '17 03:04 terenceting

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

sdrdis avatar May 04 '17 16:05 sdrdis

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..

joebetmutia avatar May 04 '18 03:05 joebetmutia

There is no need to reload the page, just use getOperatorData and setOperatorData.

sdrdis avatar May 04 '18 16:05 sdrdis

got it now. thank you!

joebetmutia avatar May 07 '18 02:05 joebetmutia