React-diagrams: How can I add class to the DefaultNodeModel?

Created on 12 May 2019  路  2Comments  路  Source: projectstorm/react-diagrams

I want to add a class for each node type,

node = new DefaultNodeModel(v.name, v.color);
node.id = v.id;

I can change the ID and position value. But How can I add a class for each node?

answered question

Most helpful comment

You can inherit default class and then implement any logic you want in render method

All 2 comments

You can inherit default class and then implement any logic you want in render method

@JokerNN dont think I dont notice your replies :3 I may have seemed like I disappeared off the face of the earth, but its still super rewarding seeing you reply \:D/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

affanshahid picture affanshahid  路  3Comments

t-gacema picture t-gacema  路  4Comments

Nesterov-Konstantin picture Nesterov-Konstantin  路  4Comments

kmannislands picture kmannislands  路  3Comments

CarlousF picture CarlousF  路  3Comments