We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

When to use getNode vs findNode


Our application currently uses both getNode and findNode api calls.
I notice that your api reference (https://help.syncfusion.com/api/js/ejdiagram) only includes findNode.

Should I replace all instances of getNode with findNode or is there any conditions under which getNode is required?

Please advise.



3 Replies

AR Aravind Ravi Syncfusion Team January 23, 2019 06:17 AM UTC

Hi Jim 
The findNode method is used to return the node/connector object. While defining and rendering the swimlane, the swimlane object converted to group node. So findNode method will return the group Node structure while finding the swimlane. The getNode method which returns the original swimlane structure while finding the swimlane. 
Aravind Ravi 

JJ Jim Jacobs January 23, 2019 04:13 PM UTC

Hi Aravind,

Thanks for the prompt reply.  Yes, it appears that I am using getNode for swimlanes.

I have another question for you.
Where can I find these functions (such as getNode, getObjectType) documented?
As I mentioned in my initial post, this is not documented in your api reference.

Thanks for pointing me to where I can find this information.



RT Ramya Thirugnanam Syncfusion Team January 24, 2019 08:52 AM UTC

Hi Jim, 
We have planned to add API documentation for the getNode and getObjectType API methods. These changes will be reflected in our help documentation link on  February 1st 2019. 
Ramya T 

Live Chat Icon For mobile
Up arrow icon