Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to Create NodeListView in Ver 2.2 (Read 1742 times)
alukes
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 61
Joined: Jul 1st, 2011
How to Create NodeListView in Ver 2.2
Jan 13th, 2015 at 1:18am
Print Post  
var nodeList = MindFusion.Diagramming.Diagram.create(MindFusion.Diagramming.NodeListView,
            null, null, null, $get("nodeList"));

What is the MindFusion Diagramming ver 2.2 way to do this?

Are there examples of this somewhere?

Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to Create NodeListView in Ver 2.2
Reply #1 - Jan 13th, 2015 at 11:04am
Print Post  
If you are asking how to crate it with the JQuery implementation from version 2.1, here's a snippet from the "Controls" example:

Code
Select All
...
            <td valign="top">
                <!-- The NodeListView component is bound to the canvas element below -->
                <div style="width: 200px; height: 300px; overflow: auto; border: 1px solid rgb(0, 0, 0);">
                    <canvas id="nodeList"></canvas>
                </div>
            </td>
        </tr>
    </table>
    <script type="text/javascript">
        MindFusionImpl = "JQuery";
    </script>
    <script src="jquery-1.7.1.js" type="text/javascript"></script>
    <script src="MindFusion.Diagramming.js" type="text/javascript"></script>
    <script src="Controls.js" type="text/javascript"></script>

...

// create a NodeListView component that wraps the "nodeList" canvas
var nodeList = MindFusion.Diagramming.NodeListView.create($("#nodeList")[0]);
nodeList.setTargetView($("diagram")[0]);
initNodeList(nodeList, diagram);
 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint