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
close icon

How to align more than two assistants to the left

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



required result




5 Replies

SG Shyam G Syncfusion Team 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 



RS Ruben Salas replied to Shyam G 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)


SG Shyam G Syncfusion Team 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 



RS Ruben Salas replied to Shyam G 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


SG Shyam G Syncfusion Team 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 


Loader.
Live Chat Icon For mobile
Up arrow icon