Form Layout Recommendation

  • I want to layout fields in a form where I have a label followed by a field (text field, check box, combo box, etc), followed by an optional checkbox field.

    Is the best way to accomplish this by nesting a form layout inside a column layout?

    Thanks in advance for any suggestion/advice.

    jvs


  • You could maybe add the checkboxes to fields similar way as error icon is added. Error icon, if msgTarget is 'side', is appended to field's container and aligned with it. Take a look at Field::markInvalid method to see how it is done.

    Untested, this is idea only.

    Thanks Jozef - that suggestion worked well. I have a check box next to my field control but I can't get the checkbox label to appear next to the check box control.


  • You could maybe add the checkboxes to fields similar way as error icon is added. Error icon, if msgTarget is 'side', is appended to field's container and aligned with it. Take a look at Field::markInvalid method to see how it is done.

    Untested, this is idea only.


  • Take a look at the boxLabel config property of Checkbox.


  • Well, now I realized that you most likely do not create field adjacent checkboxes as Ext components, do you? So the previous post may not apply.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Form Layout Recommendation , Please add it free.