- Welcome, Guest. Please Login or Register
MindFusion  
  We have released initial version of MindFusion.JavaScript pack. It includes chart, diagram, calendar, map, virtual keyboard, gauge and UI components. Here are more details and live demo for anyone interested.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
Creation of TableNode
Read 1887 times

Santosh   Offline
YaBB Newbies
*
Posts: 28
Gender: male
I Love MindFusion!


   
     
 
Creation of TableNode
Mar 25th, 2015 at 2:44pm
 
Hi All,

I am new to mindfusion and need some sample code for creating TableNode using JavaScript. Help!  :-/
 
 
 
IP Logged    
 
     

Stoyo   Offline
YaBB Moderator
*****
Posts: 13230
MindFusion support


   
     
 
Re: Creation of TableNode
Reply #1 - Mar 25th, 2015 at 2:49pm
 
Hi,

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

I hope that helps,
Stoyan
 
 
 
IP Logged    
 
     

Santosh   Offline
YaBB Newbies
*
Posts: 28
Gender: male
I Love MindFusion!


   
     
 
Re: Creation of TableNode
Reply #2 - Mar 25th, 2015 at 2:51pm
 
Got it! Thanks Stoyo  Smiley
 
 
 
IP Logged    
 
     

Santosh   Offline
YaBB Newbies
*
Posts: 28
Gender: male
I Love MindFusion!


   
     
 
Re: Creation of TableNode
Reply #3 - Mar 27th, 2015 at 10:09am
 
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;
   }
}
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print