move

Moves a field of the field array to a new position and rearranges all fields in between.

move(form, name, options);

Parameters

  • form FormStore
  • name string
  • options object
    • from number
    • to number

Explanation

With from you set the index of the item to be moved to the index defined under to. The action is executed only if both indexes are valid.