Form (from Box)

A form which can contain form elements.

Options

  • Inherits all from Box.
  • keys - Allow default keys (tab, vi keys, enter).
  • vi - Allow vi keys.

Properties

  • Inherits all from Box.
  • submission - Last submitted data.

Events

  • Inherits all from Box.
  • submit - Form is submitted. Receives a data object.
  • cancel - Form is discarded.
  • reset - Form is cleared.

Methods

  • Inherits all from Box.
  • focusNext() - Focus next form element.
  • focusPrevious() - Focus previous form element.
  • submit() - Submit the form.
  • cancel() - Discard the form.
  • reset() - Clear the form.

Last update: February 22, 2020