Ir al contenido

createFormView

const view = createFormView(options);

Devuelve:

  • form
  • engineRegistry
  • primitiveRegistry
  • designSystemRegistry
  • state
  • getSnapshot()
  • validate()
  • submit()
  • reset()
  • subscribe()
  • nextStep(), prevStep(), goToStep()
  • setActiveTab(), nextTab(), prevTab()
  • toggleSection(), openSection(), closeSection()
  • openAllSections(), closeAllSections()

wizard en el snapshot solo existe cuando layout.kind === "wizard".

tabs en el snapshot solo existe cuando layout.kind === "tabs".

accordion en el snapshot solo existe cuando layout.kind === "accordion".

Cada item de fields, reports y explanations expone:

  • controller
  • state
  • descriptor
  • stepId
  • tabId
  • visibleInLayout