add links below pallatte

Hi,
I want to provide links like in the same way below the connectors with the same section division, How can I add into this.



3 Replies

AR Aravind Ravi Syncfusion Team April 24, 2020 06:28 AM UTC

Hi Rakhi, 
 
We have created a sample to add another section of links under connectors in a symbol palette. In the symbol palette, you can add a multi number of palettes in it. Please set individual Id for the nodes and connectors. Do not repeat the same Id to the nodes and connector because it leads to some errors.  Please find below code snippet for how to add connectors in the palette 
 
public palettes: PaletteModel[] = [ 
    { 
      id: 'flow', 
      expanded: true, 
      symbols: this.flowshapes, 
      iconCss: 'shapes', 
      title: 'Flow Shapes' 
    }, 
    { 
      id: 'connectors', 
      expanded: true, 
      symbols: this.connectorSymbols, 
      iconCss: 'shapes', 
      title: 'Connectors' 
    }, 
    { 
      id: 'connectors2', 
      expanded: true, 
      symbols: this.connectorSymbols2, 
      iconCss: 'shapes', 
      title: 'Connector 2' 
    } 
  ]; 
 
 
 
 
Regards 
Aravind Ravi 



RA RakhiS April 24, 2020 08:06 AM UTC

Hi Arvind, 
thanks for the reply but this is the thing which I know, my question is I want to provide "links"( <a>link1</a>)  in pallate below that.


AR Aravind Ravi Syncfusion Team April 27, 2020 05:37 AM UTC

Hi Rakhi, 
 
By default, In the diagram, we can able to add node, swimlane shapes and connectors in a symbol palette. Currently, we do not have support to add “Links” in a symbol palette. However, we can add a link as annotation content to node and while drag and drop the node in diagram link shows. So that while clicking on the link you can navigate to another page. Please find below the code snippet for how to add the hyperlink in the node. 
 
{ id: 'Terminator', shape: { type: 'Flow', shape: 'Terminator' }, annotations: [ {hyperlink: {  
                                content: 'syncfusion', link: 'https://hr.syncfusion.com' 
                            }}]} , 
 
Please find the sample in below link 
 
 
If we misunderstood your requirement, please share us a image representation of how do you expect to add links in palette which would help us to proceed further. 
 
Regards 
Aravind Ravi 


Loader.
Up arrow icon