Poll
Poll closed Question: how to use custom font in mindfusion org chart ?
bars   pie
*** This poll has now closed ***


in sample.css filr    
  1 (100.0%)
in jquery-ui.min.css file    
  0 (0.0%)
in jquery-ui.structure.min.css file    
  0 (0.0%)
or in jquery-ui.theme.min.css file    
  0 (0.0%)




Total votes: 1
« Created by: Surhar on: Nov 24th, 2017 at 8:33am »
Page Index Toggle Pages: 1 2 [3]  Send TopicPrint
Very Hot Topic (More than 25 Replies) custom fonts in org chart (Read 17020 times)
Surhar
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 32
Joined: Nov 23rd, 2017
Re: custom fonts in org chart
Reply #30 - Dec 18th, 2017 at 10:23am
Print Post  
i cant understand can you explain more
  
Back to top
 
IP Logged
 
Iva_P
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 41
Joined: Jun 19th, 2013
Re: custom fonts in org chart
Reply #31 - Dec 18th, 2017 at 1:55pm
Print Post  
Hello Surhar,

Lyubo is on Christmas holiday and I will replace him for a couple of weeks.

Regarding your question: you can use the EnableStyledText property (https://www.mindfusion.eu/onlinehelp/jsdiagram/index.htm?M_MindFusion_Diagrammin...), which allows you to use HTML-like formatting of text inside nodes e.g.

node.setText ("This is my wife <a href="https://rania_blog.wordpress.org">Rania</a> and this is a genealogy tree <a href="http://my-family.org">blog</a> about the family.");

https://www.mindfusion.eu/onlinehelp/jsdiagram/Customizing_Node_Appearance.htm is a topic in the online help that deals with node styling and lists the supported HTML format tags.

Kind Regards,
Iva
  
Back to top
 
IP Logged
 
Surhar
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 32
Joined: Nov 23rd, 2017
Re: custom fonts in org chart
Reply #32 - Dec 20th, 2017 at 4:00pm
Print Post  
Thank you Iva Thanks for reply Happy Christmass In Advance For You and lyudo, lyudo why not reply on my this question : Thank you for working on my project i want to add link on text inside node and i dont want to use attach node because i dont want to reapete nodes i want to keep wife's name in same node, is it possible if yes, can take this whole project for me, because i am buse in some other projects, i also want to make this project early as i will pay bill of project development after get estimate(quotation) from you or if you are not free can your company do this ? please reply
  
Back to top
 
IP Logged
 
Surhar
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 32
Joined: Nov 23rd, 2017
Re: custom fonts in org chart
Reply #33 - Dec 20th, 2017 at 4:12pm
Print Post  
where i should write the code :

node.setText ("<a href="https://rania_blog.wordpress.org">Rania</a>");

and where i should call the setEnableStyledText function

please reply
  
Back to top
 
IP Logged
 
Iva_P
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 41
Joined: Jun 19th, 2013
Re: custom fonts in org chart
Reply #34 - Dec 21st, 2017 at 9:01am
Print Post  
Hello Surhar,

You can call node.setText() and node.setEnableStyledText() any place the node is available - e.g. when it is created or you have access to it. That is placed in any JS code-behind file that goes with your application, in our sample it is called OrgChartEditor.js. There we use the jQuery (document).ready() function to initialize the diagram. You can put your code there:

$(document).ready(function ()
{
var startNode = diagram.getFactory().createShapeNode(10, 10, 30, 20);
startNode.setEnableStyledText (true);
startNode.setText("This is <a href="http://site.org">.....");

//more code goes here
}

Regards,
Iva
  
Back to top
 
IP Logged
 
Surhar
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 32
Joined: Nov 23rd, 2017
Re: custom fonts in org chart
Reply #35 - Dec 21st, 2017 at 11:24am
Print Post  
but i want to create diifrent link on each node this node create only one link. how can i do this ?
  
Back to top
 
IP Logged
 
Iva_P
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 41
Joined: Jun 19th, 2013
Re: custom fonts in org chart
Reply #36 - Dec 22nd, 2017 at 11:56am
Print Post  
If you mean this code sets the same link to every node - this is not true. It sets the link on the node that you reference:

node1.setEnableStyledText (true);
node1.setText("This is <a href="http://link1.org">.....");

node2.setEnableStyledText (true);
node2.setText("This is <a href="http://link2.org">.....");

and so on.
  
Back to top
 
IP Logged
 
Surhar
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 32
Joined: Nov 23rd, 2017
Re: custom fonts in org chart
Reply #37 - Dec 24th, 2017 at 4:35pm
Print Post  
can you do this full project for me it is very simple project i will pay you here is my simple requirement : https://drive.google.com/open?id=1ouzAFjXTwrm9oBXNIarDs9uzOV2piTiH

please reply your suggestion
  
Back to top
 
IP Logged
 
Iva_P
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 41
Joined: Jun 19th, 2013
Re: custom fonts in org chart
Reply #38 - Dec 26th, 2017 at 10:18am
Print Post  
Hi,
please contact us on sales@mindfusion.eu and we will send you a custom offer about the terms of development.

Regards,
Iva
  
Back to top
 
IP Logged
 
Surhar
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 32
Joined: Nov 23rd, 2017
Re: custom fonts in org chart
Reply #39 - Jan 7th, 2018 at 4:30am
Print Post  
Hi, Iva

thank you for the offer but,

we done almost just family tree concept is remaining so please help us to complete family tree concept, we will pay as we can for your help, our new requirement is, retrieve data from the database is it possible
  
Back to top
 
IP Logged
 
Iva_P
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 41
Joined: Jun 19th, 2013
Re: custom fonts in org chart
Reply #40 - Jan 9th, 2018 at 11:53am
Print Post  
Hello,

If you want to read diagram data from a database it's up to you how you will retrieve and handle the data. We have a tutorial that demonstrates how you can load a graph from a json file: https://www.mindfusion.eu/onlinehelp/jsdiagram/CC_Tutorial_1__Loading_Graph_Data...

You can do something similar using a database.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 
Send TopicPrint