FormContainer & variable outputs

4 views
Skip to first unread message

Q3Man

unread,
Dec 30, 2009, 9:10:37 PM12/30/09
to WireIt
I'm new to wireit and looking to put together a quick proof of concept
for a pet project. What I'm trying to do is have a variable number of
outputs based on from data in a FormContainer. For example, if there
was a dropdown to select 0-3 outputs, I want to use addTerminal/
terminal.remove as appropriate. I'm trying to find where I can hook an
onChange callback in the formContainer. Anyone have any suggestions?

Eric Abouaf

unread,
Jan 13, 2010, 6:25:48 PM1/13/10
to wir...@googlegroups.com
Happy new year !

The easiest way to do it is to subclass FormContainer, to add your custom functions.

To see the behavior, drag'n drop a "jsbox" module into the layer, and change the number of arguments in the "function (a,b,c)"...

(see the jsBox.Container class)


--

You received this message because you are subscribed to the Google Groups "WireIt" group.
To post to this group, send email to wir...@googlegroups.com.
To unsubscribe from this group, send email to wireit+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wireit?hl=en.





--
Eric Abouaf
eric....@gmail.com
Tél: 06 29 86 37 89
Reply all
Reply to author
Forward
0 new messages