Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Reorder/relayout items in a form

    Hi,
    I am developing a simple form layout builder where the user can reorder form items by dragging/dropping them in a tree with sectionitems/formitems. The user can also specify colspan, rowspan and new row.

    I can set the colspan, rowspan directly on a field. My question is how can I reorder the fields on a form? Can I directly manipulate the form.items array and then call redraw? Or is this a dangerous approach?
    Or should I recreate the fields through setFields?

    gr. Martin

    #2
    The safe thing is complete re-creation via setFields().

    Comment

    Working...
    X