Where this wasn't possible with 1.x, is it yet possible to add/remove fields on the fly (post-render) with 2.0?
Thanks!
Alex
Seems the component.insert( index, component ) method does the trick. Now to find a crafty means to devise a form manager so that we can have an insertBefore/insertAfter :)
Adventia - E-Data 2.0 FAQ:: The HTML formatting is done on the fly by reading from To remove a field, just delete the command line of the do I add fields to the http://www.adventia.com/helpdesk/faq_edata.htmHOME
Cheers!
Alex
BigAdmin Feature Article: Solaris OS Networking -- The Magic Revealed:: The string of functions created on the fly (event-list) for processing a packet This entry point is used to add and remove addresses to and from the set of http://www.sun.com/bigadmin/features/articles/solaris_networking.htmlHOME
VSJ | .NET Zone | Data Binding for Windows Forms:: Add a BindingSource to the form by dragging it onto the canvas from the Data for changing the appearance of your application on the fly, or for enabling and http://www.vsj.co.uk/dotnet/display.asp?id=655HOME
Alright, something like this works as far as addition goes:
"http://www.w3.org/TR/html4/loose.dtd">
Form Field Removal?
Development Tools - PHP Scripts:: gets variables and values, makes the form with input fields and the Lang files. a new program you can add, remove and edit the values on the fly as you build. http://www.scripts.com/php-scripts/development-tools/ft00100/2/HOME
Search Results:: Tune it yourself on the fly, changing colors, backgrounds, RE: add and remove role ? RE: Using the same form for multiple sign ups http://www.datasprings.com/SearchResults/tabid/37/language/Default.aspx?Search=helpHOME
doLayout does the trick - thanks Saki.
On a related note, can we only append fields to a form, and not at a specific position?
Something like:
"addAt( field, position )"
would be great. Sometimes fields need a specific ordering...
I should be (not tested): form.add(a-field-instance). Maybe you need to call form.doLayout() then.
Take a look at the function render in file Component.js. There is argument position but I've never tried.