Comments (8)
Upgrade to 0.21.0 and add these props to node:
bodyBackgroundColor(isSelected) {
return 'green';
},
titleBackgroundColor(isSelected) {
return 'green';
},
borderColor(isSelected) {
return 'red';
},
textColor(isSelected) {
return isSelected ? 'gray' : 'blue';
}
from flowchart-vue.
hello @iamppz
i want different backgound colors in every node like
if(node.status == 1){
node.style("color":"green");
}
if(node.status == 2){
node.style("color":"red");
}
from flowchart-vue.
I'm not sure... do you want this?
function colors(node) {
if(node.status == 1){
node.style("color":"green");
}
if(node.status == 2){
node.style("color":"red");
}
}
<flowchart :colors="colors" ... />
from flowchart-vue.
@iamppz yes i want like above function
from flowchart-vue.
Ok, I'll do it later
from flowchart-vue.
once done please let me know
from flowchart-vue.
Published 0.23.0 to NPM
<flowchart ... @render="handleRender">
handleRender(node, children) {
console.log(node, children);
children.body.style("fill", 'red');
}
from flowchart-vue.
thank you so much for your support @iamppz
from flowchart-vue.
Related Issues (20)
- Lines are overlapping on nodes. HOT 1
- How can I make arrow bidirectional in connections? HOT 3
- How to prevent node from drag or change position? HOT 1
- 求求了,把文档写清楚点。完全不知道有些字段的参数怎么填 比如 approvers HOT 1
- style of nodes HOT 3
- how to get the node which is selected? HOT 2
- How to add template or view model html in flowchart ? HOT 2
- In place edit for a node on flow chart HOT 2
- Complex custom node HOT 2
- Drawing a polygon HOT 2
- Is it possible to add labels for the connections? HOT 2
- Is there a way to draw the "Nodes" and "Connections" dynamically on the chart based on user preference? HOT 2
- vue3 do not can work ? HOT 1
- how i can use delete node property?
- I want clone the node kinldy can you please help me HOT 7
- Bug: mouseup event doesn't work HOT 2
- Can i get example for how to use "nodesdragged" HOT 1
- Add element to g HOT 2
- Customise own node (add dropdowns in the node's title and body) 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 flowchart-vue.