You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import React, {useRef} from 'react'; function NodeLabelRender(props){ return( <div>NodeX</div> ) } export default NodeLabelRender;
But when rendering it, it is still the same as without customer node label render, only default label is rendered, not the foreign object at all,
can you check the issue here?
The text was updated successfully, but these errors were encountered:
I would guess that the problem is setTimeout. The library would not be picking up a change to the renderers. Try setting the renders to their value directly, not through state, and only modifying the data entries. It's also safer to use the stage variable when changing nodes and edges to forces a new layout pass.
Hello,
I tested your project and want to use customized node label, but I don't see it working at all
Step 1: In component
`
function DagreFlow(props){
}
export default DagreFlow;
`
and the customNodeLabel:
import React, {useRef} from 'react'; function NodeLabelRender(props){ return( <div>NodeX</div> ) } export default NodeLabelRender;
But when rendering it, it is still the same as without customer node label render, only default label is rendered, not the foreign object at all,
can you check the issue here?
The text was updated successfully, but these errors were encountered: