Comments (23)
for example when I remove node output_3 from condition_desc, it works, but when trying to remove 2nd it gives issue,
For adding new output I'm using this:
from drawflow.
from drawflow.
In drawflow outputs and inputs as sequential number.
Example:
If you have 3 outputs.
And eliminate number 2.
Outputs 1 and 2 will remain available.
You are using the functions: removeNodeOutput(id, output_class)
and addNodeOutput(id)
?
from drawflow.
from drawflow.
Use
editor.addNodeOutput(idOfNode);
from drawflow.
if I use like this, how I can add lables?
from drawflow.
is there any function that I can check if output exists or not?
from drawflow.
I don't know how you are adding the labels.
But once the connection is added you can always access the node information or add the label to the created connection.
You can get the node information with the function:
const dataNode = editor.getNodeFromId(idOfNode);
Here you can see the outputs and inputs of the nodes.
from drawflow.
is there any function that I can check if output exists or not?
from drawflow.
There is no function.
But you can use what was shown in the comment above to see if the output exists.
from drawflow.
tthis will remove "removeNodeOutput(id, output_class)" from child node inputs?
from drawflow.
Yes
from drawflow.
from drawflow.
from drawflow.
from drawflow.
In drawflow outputs and inputs are sequential number.
There can be no jump in them.
from drawflow.
from drawflow.
@jerosoler I'm using .removeNodeOutput() function wrongly?
from drawflow.
as I understand the problem is when node has any outputs + connection removeNodeOutput() gives error.
from drawflow.
When I try to remove first output which has a connection I see this error
when removing output_2 or output_3 it gives this error
and it works when I remove connection and try remove output again
from drawflow.
Please create a codepen to reproduce this problem.
from drawflow.
I'm not able to copy json from my working place, I can send screenshots
from drawflow.
I found the problem, closing the ticket, thanks.
from drawflow.
Related Issues (20)
- How to disable movement of a Node [QUESTION] HOT 1
- How Can i show cross icon using click instated of right click. In line between two node HOT 4
- How can i make only single input and single output for all node. HOT 7
- drawflow NODES connections HOT 7
- Adding event listener to button inside drawflow node HOT 1
- Suggestion to get exact mouse position
- "view" editor mode disables translate click/drag HOT 2
- Is it possible to create a drawflow connection with a different curvature than the others? HOT 1
- Can we have a before node delete event in angular? HOT 2
- Cannot read properties of undefined (reading 'inputs') HOT 3
- After setting zoom out manually and then zoomrefresh() so the connected lines of each node gets disconnected. HOT 3
- When input type = "password" the node can't be drag from list HOT 4
- [question] How to dynamically add point? HOT 1
- How to lock the full screen nodes and move into the area HOT 1
- Component return click event goes out of the canvas HOT 1
- Mouse gets stuck when leaving parent container HOT 1
- How to do a right click context menu on the connection links HOT 2
- How to place Inputs/Outputs at top & bottom instead of left and right HOT 1
- how can distribute flow in 2 part HOT 4
- Any way to designate True/False outputs for custom nodes? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drawflow.