1 Nov 2013 2:54 PM #1
Generate Form fields on the fly
Hello everyone, I am new to extjs,
I am thinking of using extjs for a business application, but I wonder if it is possible to generally windows and their components through the database, as well as some functions code for loading from the database.
If possible one simple example
1 Nov 2013 3:24 PM #2
you can simply return meta information with your data, which can be used to configure the form elements. Use factory methods to create the elements with given configuration.
Easy task to build the elements, difficult task to arrange them in the form.vg Steffen
Release Manager of TYPO3 4.5
2 Nov 2013 2:37 AM #3
thanks for your answer, can you give me a small example
3 Nov 2013 3:00 AM #4
- Join Date
- Apr 2007
- Sydney, Australia
- Vote Rating
Look at the component-loader example that comes with the SDK. The 3rd panel generates the panels dynamically from the server.Evan Trimboli
Twitter - @evantrimboli
Don't be afraid of the source code!
13 Sep 2014 7:32 AM #5
I need to create form fields dynamically and I'd like for them to layout one after the other horizontally and wrap to the next line as appropriate. Is this possible?
Field 1 Field 2 Field 3 <edge>
F4 F5 F6 Field 7 <edge>
13 Sep 2014 7:41 AM #6
I'd need to set the config on the items as well.