Skip to content

widget-form-info

App: Backend
Source: web/projects/backend/src/widgets/widget-form-info

Purpose

Provides a lightweight summary of the currently viewed form inside object dashboards. It surfaces status, owner metadata, and a shortcut to edit the base form record.

Inputs & State

  • Receives a FormWithRelations observable via the widget state input.
  • Uses the shared statuses dictionary (1=draft, 2=active, 3=archived) to render chips.

Behaviour

  • Displays name, status badge, category, creator, and description.
  • openEditForm() launches FormManagmentDialog (formForm) with the current form as dialog data.
  • After the dialog is closed, it dispatches FindOneForm to refresh NgXS FormState, ensuring other widgets on the dashboard pick up edits immediately.

Extension Tips

  • Add additional metadata (e.g., last revision ID) by extending FormWithRelations include list in the dashboard wrapper.
  • Hook additional actions (duplicate, archive) by adding more menu items that call the relevant SDK services.

Syneo/Barcoding Documentation