[Question] Display more than the name
bbassac opened this issue · 1 comments
bbassac commented
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"
bbassac commented
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 (
{nodeData.attributes.Type+':'}
{nodeData.name}
)
}
}