Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Are containers possible in Javascript ? (Read 2372 times)
Florin
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Apr 2nd, 2012
Are containers possible in Javascript ?
Oct 5th, 2012 at 10:28pm
Print Post  
Hi,

I just have a quick question: are containers possible in JavaScript?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Are containers possible in Javascript ?
Reply #1 - Oct 6th, 2012 at 7:04am
Print Post  
Hi,

We haven't ported the ContainerNode class to JavaScript yet. At this time you could use a ShapeNode as a container and call childNode.attachTo(ctrNode) to make child nodes follow the container node when moved. You could also implement a fold/unfold feature by calling setVisible on all child nodes, which you can find by calling ctrNode.getAttachedNodes(), and updating the container's Bounds.

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