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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

When to use getNode vs findNode

Thread ID:

Created:

Updated:

Platform:

Replies:

142167 Jan 22,2019 07:38 PM UTC Jan 24,2019 08:52 AM UTC JavaScript 3
loading
Tags: ejDiagram
Jim Jacobs
Asked On January 22, 2019 07:38 PM UTC

Hi,

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.

Thanks

Jim

Aravind Ravi [Syncfusion]
Replied On 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. 
 
Regards 
Aravind Ravi 
 
 


Jim Jacobs
Replied On 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.

Thanks

Jim



Ramya Thirugnanam [Syncfusion]
Replied On 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. 
 
Regards 
Ramya T 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;