ErikGartner / dTree

A library for visualizing data trees with multiple parents, such as family trees. Built on top of D3.
https://treehouse.gartner.io/ErikGartner/58e58be650453b6d49d7
MIT License
521 stars 139 forks source link

How to add marriage as parameter on nodeClick #77

Open taufan20 opened 6 years ago

taufan20 commented 6 years ago

i want to check whether node has marriage or not. if node does not have marriage (it means that nade is spouse) then user cannot add family.

ErikGartner commented 6 years ago

The best solution currently for this would be adding it to the extra field. See the demo/example. So instead of storing favorite colour like in the example, store the marital status.