Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding extra values to a connector #88

Open
MadTomT opened this issue Jul 31, 2018 · 3 comments
Open

Adding extra values to a connector #88

MadTomT opened this issue Jul 31, 2018 · 3 comments

Comments

@MadTomT
Copy link

MadTomT commented Jul 31, 2018

Hi
Is it possible to add extra values to an input or output connector ?
Then when using getData have that data included ?

eg:

  "links": {
    "0": {
      "fromOperator": "operator1",
      "fromConnector": "output_1",
      "fromSubConnector": 0,
	  "fromValueA": "1234",
	  "fromValueB": "ABCD",
      "toOperator": "operator2",
      "toConnector": "input_1",
      "toSubConnector": 0
	  "toValueA": "5678",
	  "toValueB": "WXYZ",
    }
  },

Thanks

@runette
Copy link

runette commented Aug 11, 2018 via email

@sdrdis
Copy link
Owner

sdrdis commented Aug 11, 2018

I think I needed this too and that is how I handled it. I mark this as a possible enhancement. Thanks @runette for your participation!

@MadTomT
Copy link
Author

MadTomT commented Sep 3, 2018

As a very simple test I added id: '123', to one of my outputs.
This shows in the save getData, I then change the following to flowchart.js

var $operator_connector_label = $('<div class="flowchart-operator-connector-label"></div>');
To
[var $operator_connector_label = $('<div id="' + connectorInfos.id + '" class="flowchart-operator-connector-label"></div>');

The HTML now has the ID against the element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants