-
Notifications
You must be signed in to change notification settings - Fork 149
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
Comments
Have you tried to see if this works anyway.? I needed to do the same thing
(only not at the sub-connector level) and I added elements called
"properties" at both the operator and input/output levels and added
arbitrary data in those elements. These elements survive the
setData/getData cycle.
I also needed additional data at the flowchart level (primarily version and
view origin for panzoom) this was a bit harder. I created a new top level
element to hold these - but that does NOT survive the setData/getData
cycle. I added a little bit of JS to store that data against the HTML
flowchart element and then retrieve it when doing a get data and wrapped
that around the setData and getData. it probably would not be a lot of work
to add this to flowchart - but I have not done that yet.
…On Tue, 31 Jul 2018 at 11:33 MadTomT ***@***.***> wrote:
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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#88>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACItM9PtRctVzDxpnten-wGT4C_uJchDks5uMDJigaJpZM4VoAKy>
.
|
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! |
As a very simple test I added
The HTML now has the ID against the element. |
Hi
Is it possible to add extra values to an input or output connector ?
Then when using getData have that data included ?
eg:
Thanks
The text was updated successfully, but these errors were encountered: