Closed bbassac closed 3 years ago
Find a way with creating a NodeLabel class and refering into render:
nodeLabelComponent={{
render: <NodeLabel className='myLabelComponentInSvg' />,
foreignObjectWrapper: {
y: -22
}
}}/>
and
export class NodeLabel extends React.PureComponent { render() { const { className, nodeData } = this.props; return (
)
}
}
Is there a ways to display more attributes in a tool tip, or on a sub-line ? Ex : { "name": "app.js", "active": true, "attributes" : { key1 : "aaa", key2:"bbb"} } With the labels aaa et bbb displayed under the "app.js"