Results 1 to 8 of 8

Thread: Align form fields to right side

  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    651

    Default Align form fields to right side

    Is it possible to get all form fields to align to the right side along with the buttons? I used the column layout to get them in a single row (before) but I'm at a lost for positioning them (after). I have exhausted my search and am under a deadline.

    Any help is appreciated.
    Attached Images Attached Images

  2. #2

    Default

    I think what you need is to use anchors, the form layout is a subclass of the anchor layout, take a look at the anchor config option of the Ext.layout.AnchorLayout.
    Project manager / coder @ xDesk ERP

  3. #3
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    651

    Default

    I tried looking at the anchor layout but because I have not used it much, I am probably missing something.

    Any examples with right aligned fields?

  4. #4

    Default

    You have an example at the samples page.

    Just play with the anchor values of your fields to get them anchored to the right.
    Project manager / coder @ xDesk ERP

  5. #5
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    @OP, you don't explain anything. Is this in a Toolbar? Do you need labels with the fields? (would require a form layout)

  6. #6
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    651

    Default

    Sorry for the lack of detail.

    * I do require form labels.
    * I am just trying to create a form with fields in a single row that are aligned to the right side - no toolbars.

  7. #7
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    Try a TableFormLayout (It's a UX) in a Container which you float to the right.

  8. #8
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    Or a TableContainer http://www.extjs.com/forum/showthread.php?t=83252

    Float it to the right, or position it absolutely right: 0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •