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


SIGN IN To post a reply.
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 },
}); |
Help documentation: https://help.syncfusion.com/js/diagram/automatic-layout#assistant
Regards,
Shyam G
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 orientationfunction getLayoutInfo(diagram, node, options) {if (!options.hasSubTree) {options.orientation = node.addInfo.orientation;options.type = "left";}}
$("#diagram").ejDiagram({layout: { type: "organizationalchart", getLayoutInfo: getLayoutInfo },});
Help documentation: https://help.syncfusion.com/js/diagram/automatic-layout#assistant
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
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.
Feedback link: https://www.syncfusion.com/feedback/11667/need-to-provide-option-to-align-the-assistants-as-desired-side
Regards,
Shyam G
SIGN IN To post a reply.
- 5 Replies
- 2 Participants
-
RS Ruben Salas
- Jan 24, 2020 02:40 PM UTC
- Jan 30, 2020 11:15 AM UTC