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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

How to align more than two assistants to the left

Thread ID:

Created:

Updated:

Platform:

Replies:

150930 Jan 24,2020 02:40 PM UTC Jan 30,2020 11:15 AM UTC jQuery 5
loading
Tags: ejDiagram
Ruben Salas
Asked On January 24, 2020 02:40 PM UTC

Hello good morning, how to align more than two assistants to the left



required result




Shyam G [Syncfusion]
Replied On January 27, 2020 05:05 PM UTC

Hi Ruben, 

Please set options type as Left in the getLayoutInfo function to achieve your requirement. Please refer to a code example and the sample below. 

Code example: 
  //Customize subtree orientation 
            function getLayoutInfo(diagram, node, options) { 
                if (!options.hasSubTree) { 
                    options.orientation = node.addInfo.orientation; 
                    options.type = "left";  
               
           

  $("#diagram").ejDiagram( 
           
                  
                layout: { type: "organizationalchart", getLayoutInfo: getLayoutInfo }, 
  
                 
            }); 




Regards, 
Shyam G 


Ruben Salas
Replied On January 27, 2020 05:21 PM UTC

Hi Ruben, 

Please set options type as Left in the getLayoutInfo function to achieve your requirement. Please refer to a code example and the sample below. 

Code example: 
  //Customize subtree orientation 
            function getLayoutInfo(diagram, node, options) { 
                if (!options.hasSubTree) { 
                    options.orientation = node.addInfo.orientation; 
                    options.type = "left";  
               
           

  $("#diagram").ejDiagram( 
           
                  
                layout: { type: "organizationalchart", getLayoutInfo: getLayoutInfo }, 
  
                 
            }); 




Regards, 
Shyam G 


Hi,
What I want to align are the assistant nodes (options.assistants)

Shyam G [Syncfusion]
Replied On January 29, 2020 12:21 PM UTC

Hi Ruben, 
 
Could you please confirm us whether you are using EJ1 Javascript or EJ2 Javascript? 
 
Regards, 
Shyam G 


Ruben Salas
Replied On January 29, 2020 10:46 PM UTC

Hi Ruben, 
 
Could you please confirm us whether you are using EJ1 Javascript or EJ2 Javascript? 
 
Regards, 
Shyam G 


Hey Shyam, EJ2

https://stackblitz.com/edit/1woeqw-a81wbz?file=index.js

What I want to align are the assistant nodes (options.assistants)

Please help me

Shyam G [Syncfusion]
Replied On January 30, 2020 11:15 AM UTC

Hi Ruben, 
 
Currently we don’t have support to align the assistants on the left. We have logged “Need to provide option to align the assistants as desired side” as a feature. You can track the status of the feature from the below feedback link. 
 
 
Regards, 
Shyam G 


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

Live Chat Icon For mobile
Live Chat Icon