Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2017
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    link on javascript framework

    i want some help i want to add link on some text inside javascript doc here is my code
    Code:
        var samji = new OrgChartNode(diagram, ladha);
        samji.setBounds(new Rect(95, 135, 10, 15));
        samji.setTextPadding(50);
        //samji.setTitle("Media");
        samji.setFullName(";FD\nDFGAF>");
        //samji.setImageLocation("ad.png");
        samji.resize();
        diagram.addItem(samji);
    i want to create link on 
    on ";FD\nDFGAF>"
    inside :
    samji.setFullName(";FD\nDFGAF>"

  2. #2
    New Coder
    Join Date
    Mar 2019
    Location
    Ahmedabad
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here is the solution of your issue:

    Code:

    var samji = new OrgChartNode(diagram, ladha);
    samji.setBounds(new Rect(95, 135, 10, 15));
    samji.setTextPadding(50);
    //samji.setTitle("Media");
    var setlink = samji.setFullName(";FD\nDFGAF>");
    var result= setlink.link("https://www.ifourtechnolab.com/");
    //samji.setImageLocation("ad.png");
    samji.resize();
    diagram.addItem(samji);


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •