Rerender one node with template

hi,

how can I rerender a custom node which uses the nodeTemplate-function ?

The only way I could found was to make a this._diagramInstance.refresh(). 

But this would refresh the whole diagram and not only one node.

Every other function I tried didn't rerender the nodes template.


Best Regards

Tobias


1 Reply

AR Aravind Ravi Syncfusion Team December 13, 2021 01:10 PM UTC

Hi Tobias, 

By default, in the diagram, we have only property binding support for the diagram properties and node properties. In the diagram, whenever you change the node height, width, offset means then property binding gets work. We do not have property binding support for the node template. Because nodeTemplate is a HTML element we do not have property binding support for the HTML element. If you want to change the HTML template means only way is to get the element from DOM and change it manually.  

Regards 
Aravind Ravi 


Loader.
Up arrow icon