1. #1
    Ext User jvolt's Avatar
    Join Date
    Jan 2008
    Posts
    44
    Vote Rating
    0
    jvolt is on a distinguished road

      0  

    Default Complex form

    Complex form


    Hello, is there a way to make a complex form like this:

    complex_form.jpg

    Without use anchor layout on form and alot of panels with form layout?

    Today i do so:
    Code:
    form({layout: 'anchor'}) { 
       fieldset({layout: 'column'}) {
          panel({layout: 'form'}) {
             textfield... 
          }
       }
    }
    Code:
    items:
     {
       xtype: 'form',
       layout: 'anchor',
       items: [
          {
          xtype: 'fieldset',
          layout: 'column',
          items: [
            {
            xtype: 'panel',
            layout: 'form',
            columnWidth: 0.7,
            padding: 5,
            labelWidth: 60,
            items: [
             {
             xtype: 'textfield',
    ...

  2. #2
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD.
    Posts
    1,745
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    Yes, that form can be created in the same fashion. You can change a FormPanel's or a FieldSet's layout to be anything you want, and add child Containers or Panels with their own layout. The FieldSet doesn't have a "flyout" menu (little gear icon) like other Containers do, but its layout config option can be located and modified in the Component Config pane.

  3. #3
    Ext User jvolt's Avatar
    Join Date
    Jan 2008
    Posts
    44
    Vote Rating
    0
    jvolt is on a distinguished road

      0  

    Default


    Sorry, i think didn't sure.

    I mean about make that complex form without using one panel for each textfield.

    If i use a column layout on a FieldSet my textField's lose the fieldLabel, so I made alot of panels to hand it, that panels have "form" layout to show fieldLabel's on textField's.

    But that create many panels... Is there a way to make the fieldSet's layout = 'column' and show the textField's fieldLabel in that?


    I've noticed just form layout show the textField fieldLabel, so made a column layout with many form layouts inside

  4. #4
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD.
    Posts
    1,745
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    jvolt,

    You have the right approach...although you can use a Container instead of a Panel, which is slightly less overhead and "simpler". But in order to show the fieldLabel, the Field must be directly inside of a "form" layout container. If you wish not to create Containers, you can always use a Label directly, placed next to a Field, and set its "forId". This would then ignore the fieldLabel of the Field as well as any label settings on the FieldSet/FormPanel.

  5. #5
    Ext User jvolt's Avatar
    Join Date
    Jan 2008
    Posts
    44
    Vote Rating
    0
    jvolt is on a distinguished road

      0  

    Default


    Thanks jarred =)

    I will use containers instead of panels!

Similar Threads

  1. A complex JSON data to map into complex form
    By TheItalianJob in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 26 Nov 2010, 7:53 AM
  2. complex form
    By d0uble_hel1x in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 1 Sep 2009, 12:52 PM
  3. Complex form layout: form -> tabpanel -> columns -> items
    By nik600 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 23 May 2009, 3:04 AM
  4. Complex form help needed - form won't populate
    By Specks in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 8 Mar 2009, 9:50 PM
  5. How to implement complex form with ext form?
    By kusoft.net in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 13 Dec 2007, 8:44 PM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar