Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Creation of TableNode (Read 3708 times)
Santosh
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Joined: Mar 25th, 2015
Creation of TableNode
Mar 25th, 2015 at 1:44pm
Print Post  
Hi All,

I am new to mindfusion and need some sample code for creating TableNode using JavaScript. Help!  :-/
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Creation of TableNode
Reply #1 - Mar 25th, 2015 at 1:49pm
Print Post  
Hi,

There's a SpanningCells.js example included in JsDiagram archive showing how to create tables.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Santosh
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Joined: Mar 25th, 2015
Re: Creation of TableNode
Reply #2 - Mar 25th, 2015 at 1:51pm
Print Post  
Got it! Thanks Stoyo  Smiley
  
Back to top
 
IP Logged
 
Santosh
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Joined: Mar 25th, 2015
Re: Creation of TableNode
Reply #3 - Mar 27th, 2015 at 9:09am
Print Post  
I had one more query. I want to add custom attributes to table node. How to achieve that? I was able to do the same using custom node. But I need table nodes.

I need something similar for table node.

Custom Node Approach:
------------------------------
var Diagram = MindFusion.Diagramming.Diagram;
var Behavior = MindFusion.Diagramming.Behavior;
var AbstractionLayer = MindFusion.AbstractionLayer;

var ElementNode = function (parent)
{
AbstractionLayer.initializeBase(ElementNode, this, [parent]);
}

ElementNode.prototype =
{
//Defined custom attributes here
   setMyAttribute: function(value){
        this.myAttribute = value;
   }
   getMyAttribute: function(){
        return this.myAttribute;
   }
}
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint