orientation: orientation.RightToLeft,
<link rel="stylesheet" rel='nofollow' href="//cdn.syncfusion.com/16.4.0.42/js/web/flat-azure/ej.web.all.min.css" />
<script src="//cdn.syncfusion.com/16.4.0.42/js/web/ej.web.all.min.js"> </script> |
How can I add to my Organizational Chart based on this sample https://jsplayground.syncfusion.com/njwm5un4 (note that mine it's too large) an expandable option? |
In this sample we have used our data instead of that you may define your own data. After defining the data, in dataSourceSettings set the id, parent and map the datasource.
In node default settings please set expand and collapse icon for node. Find the below code example for how to set expand and collapse icon
| ||
Is there any way to use hand tool (same as PDF) instead of using always the horizontal and vertical scroll function? |
Pan tool allows you to pan the diagram instead of always using the horizontal and vertical scroll function. To enable pan tool set ZoomPan in the diagram tool. When you enable both the SingleSelect and ZoomPan tools, you can perform the basic interaction as the cursor hovers node/connector. Panning is enabled when cursor hovers the Diagram. Please find below code example for how to set ZoomPan and SingleSelect in diagram
|
How can I remove the select points while clicking the minus function (expandable) without right-clicking on blank area. ( |
To remove selector while clicking node , set selector constraints as none for the selected items. Please find below code snippet for how to set selector constraints as none
We have prepared a sample for your requirement. Please find the sample in below link
Sample: Organizational_Chart
| |
How can I download this js and css files so I can open my chart without being connected to internet, cause I tried to download the files from the links and disconnect the internet but the format was lost |
From custom script generator you can download the css and dependency files for the diagram control.
After download the dependency files you can refer it in the project locally.
Please refer to the below UG documentation link for more details about how to generate custom script
|
$("#diagram").ejDiagram(
{
defaultSettings: {
node: {
expandIcon:{ shape:"minus", width:10, height:10 },
collapseIcon: { shape: "plus", width: 10, height: 10 },
isExpanded: false
},
}
}); |