toggle fixeduserhandle visibility

Hello Team,

is there a way to toggle visibility of fixedUserHandle of node/connector?

greetings


5 Replies 1 reply marked as answer

MG Moulidharan Gopalakrishnan Syncfusion Team March 15, 2024 11:30 AM UTC

Hi,
We have prepared a sample to achieve toggling visibility of the fixedUserHandle upon button click. You can toggle between the fixedUserHandles visibility by adjusting the Boolean value of the visibility property.Refer Documentation to customise the fixedUserHandle style properties and kindly refer the code – snippet and sample for guidance.

Documentation: https://ej2.syncfusion.com/react/documentation/diagram/user-handle#style

Code - snippet

var visible=true;

function show() {

    if(visible)

    {

        diagramInstance.nodes[0].fixedUserHandles[0].visibility= false;

        visible=false;

    }else

    {

        diagramInstance.nodes[0].fixedUserHandles[0].visibility= true;

        visible=true;

    }

};


Sample

https://stackblitz.com/edit/react-stjpkp-3wzxgj?file=index.js
Regards,


Marked as answer

JC Jean Caiza March 15, 2024 02:27 PM UTC

Thanks!

Another question, is there a way to control the output of a connector from a node/shape?

For example, I have this diagram with the following nodes, the node on the left has other nodes. but I want to try to control the output of the connectors of the node on the left

Image_1508_1710512513869

resulting in the following image

Image_7246_1710512811449


Regards



MG Moulidharan Gopalakrishnan Syncfusion Team March 18, 2024 09:32 AM UTC

Hi,

We have prepared a sample to meet your requirements. To control the outputs of the nodes (connectors) from a single point, utilize the Port feature in the diagram component. Please refer to the documentation and sample for instructions on how to use Ports in the diagram.

Documentation:

https://ej2.syncfusion.com/react/documentation/diagram/ports

Sample

Nqbvis (forked) - StackBlitz

Regards,
Moulidharan



JC Jean Caiza replied to Moulidharan Gopalakrishnan March 19, 2024 08:15 PM UTC

doesn't work with umlDiagram or node.type="umlClassifier"



MG Moulidharan Gopalakrishnan Syncfusion Team March 20, 2024 09:23 AM UTC

Hi,

Currently there is no support for port in UML shapes. This requirement is already logged as a feature request in our backlog but there are no immediate plans for implementation. Please refer to the feedback link to track the status of the feature.

FeedBack link:Provide port support for UML class diagram in React in React | Feedback Portal (syncfusion.com)


Regards,
Moulidharan


Loader.
Up arrow icon