Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Heading above diagram under canvas (Read 1000 times)
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Heading above diagram under canvas
Sep 21st, 2019 at 7:49am
Print Post  
Hi,
Is it possible to give a heading and a clickable link under the canvas above the diagram?
  
Back to top
AIM  
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3383
Joined: Oct 19th, 2005
Re: Heading above diagram under canvas
Reply #1 - Sep 21st, 2019 at 9:04am
Print Post  
Hi,

If you need that heading to scroll with the rest of the diagram, you could implement it as a locked node -

Code
Select All
var heading = diagram.factory.createShapeNode(
	0, 0, diagram.getBounds().width, 20);
heading.setLocked(true);
heading.setEnableStyledText(true);
heading.setText("Visit our <a='http://mindfusion.eu'>website</a>!");
heading.setTextAlignment(Alignment.Center);

function onHyperlinkClicked(sender, args)
{
    window.open(args.getHyperlink());
} 



Otherwise create respective html link stacked above the diagram's div.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint