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

Why toConnector cannot have multiple inputs?

Open the-wild-bot opened this issue 7 years ago • 2 comments

{ "operators": { "flow_chart_1316": { "top": 60, "left": 380, "properties": { "title": "new campaing", "multipleLinksOnOutput": true, "inputs": {"input_117": {"label": "Input 1"}}, "outputs": { "output_118": {"label": "Email Open"}, "output_119": {"label": "Email Not Open"}, "output_120": {"label": "Email Send"}, "output_121": {"label": "Email Not Send"}, "output_122": {"label": "Email Clicked"}, "output_123": {"label": "Email Not Clicked"}, "output_124": {"label": "Email Bounced"} } } }, "flow_chart_133": { "top": 40, "left": 920, "properties": { "title": "on email open", "multipleLinksOnOutput": true, "inputs": { "input_14": {"label": "Input 1"}, "input_15": {"label": "Input 2"} }, "outputs": { "output_15": {"label": "Email Open"}, "output_16": {"label": "Email Not Open"}, "output_17": {"label": "Email Send"}, "output_18": {"label": "Email Not Send"}, "output_19": {"label": "Email Clicked"}, "output_110": {"label": "Email Not Clicked"}, "output_111": {"label": "Email Bounced"} } } } }, "links": { "0": { "fromOperator": "flow_chart_1316", "fromConnector": "output_118", "fromSubConnector": 0, "toOperator": "flow_chart_133", "toConnector": "input_14", "toSubConnector": 0 } }, "operatorTypes": {} };

In above toConnector only accepts single value which is input_14 what i want is "toConnector": ["input_14","input_15"]

the-wild-bot avatar May 09 '18 05:05 the-wild-bot

For the moment, a link can have only one input and one output. But you can create two links instead from the same input using the multipleLinksOnInput and multipleLinksOnOutput options.

sdrdis avatar May 12 '18 09:05 sdrdis

@sdrdis thanks for the answer it worked, but now i am strugguling with another issue if i add too many inputs and outputs the box becomes too long that it occupies half of the screen however this was solved by zoom feature but still the box that big doesn't look that much good.

So what i actually want to ask is are you going to fix it in future revision? If so i would be glad and thankful.

your library is great thanx.

the-wild-bot avatar May 14 '18 05:05 the-wild-bot